Explorar el Código

Bugfix: Input's custom style problems fixed.

lfabl hace 2 semanas
padre
commit
057c261591

+ 1 - 1
package.json

@@ -181,7 +181,7 @@
     },
     "release-it": {
         "git": {
-            "commitMessage": "chore: release ${version}",
+            "commitMessage": "Release: v${version}",
             "tagName": "v${version}"
         },
         "npm": {

+ 8 - 8
src/components/textAreaInput/stylesheet.ts

@@ -170,11 +170,7 @@ const stylesheet = StyleSheet.create({
     },
     overlay: {
         position: "absolute",
-        zIndex: 98,
-        bottom: 0,
-        right: 0,
-        left: 0,
-        top: 0
+        zIndex: 98
     },
     hintTextIcon: {
     },
@@ -229,7 +225,11 @@ export const useStyles = ({
             marginLeft: inlineSpaces.subTitle
         } as Mutable<TextStyle>,
         overlay: {
-            borderRadius: radiuses.form - 1
+            borderRadius: radiuses.form - 1,
+            bottom: -borders.line,
+            right: -borders.line,
+            left: -borders.line,
+            top: -borders.line
         } as Mutable<ViewStyle>,
         titleContainer: {
             marginBottom: spaces.spacingSm
@@ -284,7 +284,7 @@ export const useStyles = ({
     }
 
     if(customBorderColor) {
-        styles.container.borderColor = customBorderColor;
+        styles.content.borderColor = customBorderColor;
     }
 
     if(isFocused && !isDisabled) {
@@ -296,7 +296,7 @@ export const useStyles = ({
     }
 
     if(customColor) {
-        styles.container.backgroundColor = customColor;
+        styles.content.backgroundColor = customColor;
     }
 
     return styles;

+ 2 - 2
src/components/textInput/stylesheet.ts

@@ -269,7 +269,7 @@ export const useStyles = ({
     }
 
     if(customBorderColor) {
-        styles.container.borderColor = customBorderColor;
+        styles.content.borderColor = customBorderColor;
     }
 
     if(isFocused && !isDisabled) {
@@ -281,7 +281,7 @@ export const useStyles = ({
     }
 
     if(customColor) {
-        styles.container.backgroundColor = customColor;
+        styles.content.backgroundColor = customColor;
     }
 
     return styles;

BIN
temp_index.tsx.bak