Skip to content

Commit 1261dd5

Browse files
authored
Merge pull request #761 from actiontech/feature/issue-2572-2
[style](SqlOptimization): Adjust font color of checkbox
2 parents 576f756 + 8bfac02 commit 1261dd5

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

packages/sqle/src/page/SqlOptimization/Create/SQLInfoForm/SQLInfoFormItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ const SQLInfoFormItem: React.FC<SqlInfoFormProps> = ({ form, submit }) => {
251251
</FormItemNoLabel>
252252
<EmptyBox if={optimizationType === OptimizationTypeEnum.online}>
253253
<FormItemNoLabel name="enableHighAnalysis" valuePropName="checked">
254-
<Checkbox>
254+
<Checkbox className="high-analysis-checkbox">
255255
{t('sqlOptimization.create.sqlInfo.enableHighAnalysis')}
256256
</Checkbox>
257257
</FormItemNoLabel>

packages/sqle/src/page/SqlOptimization/Create/SQLInfoForm/style.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,8 @@ export const SqlInfoFormStyleWrapper = styled(FormStyleWrapper)`
3232
height: 36px !important;
3333
width: 36px !important;
3434
}
35+
36+
.high-analysis-checkbox.ant-checkbox-wrapper {
37+
color: ${({ theme }) => theme.sharedTheme.uiToken.colorTextTertiary};
38+
}
3539
`;

packages/sqle/src/page/SqlOptimization/Create/__snapshots__/index.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ exports[`sqle/SqlOptimization/Create enter default content to create sql optimiz
127127
</section>
128128
</form>
129129
<form
130-
class="ant-form ant-form-horizontal css-hpr9p4"
130+
class="ant-form ant-form-horizontal css-fx8owy"
131131
>
132132
<section
133133
class="css-bspaai"
@@ -896,7 +896,7 @@ exports[`sqle/SqlOptimization/Create enter default content to create sql optimiz
896896
class="ant-form-item-control-input-content"
897897
>
898898
<label
899-
class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item"
899+
class="ant-checkbox-wrapper ant-checkbox-wrapper-in-form-item high-analysis-checkbox"
900900
>
901901
<span
902902
class="ant-checkbox"

0 commit comments

Comments
 (0)