Skip to content

Commit 9ad28bb

Browse files
committed
remove border styles from disables
1 parent 56e71f6 commit 9ad28bb

File tree

6 files changed

+1
-30
lines changed

6 files changed

+1
-30
lines changed

client/packages/lowcoder/src/comps/comps/buttonComp/buttonCompConstants.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ export function getButtonStyle(buttonStyle: ButtonStyleType, disabledStyle?: any
5454
&.ant-btn-disabled {
5555
color: ${disabledStyle?.disabledText || buttonStyle.text};
5656
background: ${disabledStyle?.disabledBackground || buttonStyle.background};
57-
border-color: ${
58-
disabledStyle?.disabledBorder || buttonStyle.border
59-
} !important;
6057
cursor: not-allowed;
6158
}
6259
}

client/packages/lowcoder/src/comps/comps/numberInputComp/numberInputComp.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,23 +133,13 @@ const InputNumber = styled(AntdInputNumber)<{
133133
&.ant-input-number-disabled {
134134
color: ${(props) => props.$disabledStyle?.disabledText || props.$style.text} !important;
135135
background: ${(props) => props.$disabledStyle?.disabledBackground || props.$style.background} !important;
136-
border-color: ${(props) => props.$disabledStyle?.disabledBorder || props.$style.border} !important;
137136
cursor: not-allowed;
138137
139138
.ant-input-number-input {
140139
color: ${(props) => props.$disabledStyle?.disabledText || props.$style.text} !important;
141140
background: ${(props) => props.$disabledStyle?.disabledBackground || props.$style.background} !important;
142141
}
143142
144-
.ant-input-number-handler-wrap {
145-
background: ${(props) => props.$disabledStyle?.disabledBackground || props.$style.background} !important;
146-
border-color: ${(props) => props.$disabledStyle?.disabledBorder || props.$style.border} !important;
147-
148-
.ant-input-number-handler span {
149-
color: ${(props) => props.$disabledStyle?.disabledText || props.$style.text} !important;
150-
opacity: 0.3;
151-
}
152-
}
153143
}
154144
`;
155145

client/packages/lowcoder/src/comps/comps/textInputComp/inputComp.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ const InputStyle = styled(Input)<{
5555
&.ant-input-disabled {
5656
color: ${(props) => props.$disabledStyle?.disabledText || props.$style.text} !important;
5757
background: ${(props) => props.$disabledStyle?.disabledBackground || props.$style.background} !important;
58-
border-color: ${(props) => props.$disabledStyle?.disabledBorder || props.$style.border} !important;
5958
cursor: not-allowed;
6059
}
6160
`;

client/packages/lowcoder/src/comps/comps/textInputComp/passwordComp.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ const PasswordStyle = styled(InputPassword)<{
5757
&.ant-input-disabled {
5858
color: ${(props) => props.$disabledStyle?.disabledText || props.$style.text} !important;
5959
background: ${(props) => props.$disabledStyle?.disabledBackground || props.$style.background} !important;
60-
border-color: ${(props) => props.$disabledStyle?.disabledBorder || props.$style.border} !important;
6160
cursor: not-allowed;
6261
}
6362
`;

client/packages/lowcoder/src/comps/comps/textInputComp/textAreaComp.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ const TextAreaStyled = styled(TextArea)<{
5252
&.ant-input-disabled {
5353
color: ${(props) => props.$disabledStyle?.disabledText || props.$style.text} !important;
5454
background: ${(props) => props.$disabledStyle?.disabledBackground || props.$style.background} !important;
55-
border-color: ${(props) => props.$disabledStyle?.disabledBorder || props.$style.border} !important;
5655
cursor: not-allowed;
5756
}
5857
`;

client/packages/lowcoder/src/comps/controls/styleControlConstants.tsx

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -966,12 +966,7 @@ const DISABLED_BACKGROUND = {
966966
color: SECOND_SURFACE_COLOR,
967967
} as const;
968968

969-
const DISABLED_BORDER = {
970-
name: "disabledBorder",
971-
label: trans("style.disabledBorder"),
972-
depName: "disabledBackground",
973-
transformer: backgroundToBorder,
974-
} as const;
969+
975970

976971
const DISABLED_TEXT = {
977972
name: "disabledText",
@@ -984,7 +979,6 @@ const DISABLED_TEXT = {
984979
// Re-export for reuse in other components if needed
985980
export const DISABLED_STYLE_FIELDS = [
986981
DISABLED_BACKGROUND,
987-
DISABLED_BORDER,
988982
DISABLED_TEXT,
989983
] as const;
990984

@@ -995,12 +989,6 @@ const DISABLED_INPUT_BACKGROUND = {
995989
color: SECOND_SURFACE_COLOR,
996990
} as const;
997991

998-
const DISABLED_INPUT_BORDER = {
999-
name: "disabledBorder",
1000-
label: trans("style.disabledBorder"),
1001-
depName: "disabledInputBackground",
1002-
transformer: backgroundToBorder,
1003-
} as const;
1004992

1005993
const DISABLED_INPUT_TEXT = {
1006994
name: "disabledText",
@@ -1013,7 +1001,6 @@ const DISABLED_INPUT_TEXT = {
10131001
// Re-export for reuse in textInput components
10141002
export const DISABLED_INPUT_STYLE_FIELDS = [
10151003
DISABLED_INPUT_BACKGROUND,
1016-
DISABLED_INPUT_BORDER,
10171004
DISABLED_INPUT_TEXT,
10181005
] as const;
10191006

0 commit comments

Comments
 (0)