Skip to content

Commit

Permalink
feat: 通用样式收敛至reset里
Browse files Browse the repository at this point in the history
  • Loading branch information
huangguang1999 committed Dec 27, 2023
1 parent 302f377 commit a0335e1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 15 deletions.
5 changes: 0 additions & 5 deletions packages/arcodesign/components/checkbox/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
display: inline-flex;
align-items: center;

// Solve the style problem caused by the tabIndex attribute of lower versions of iOS
&:focus {
outline: none;
}

.checkbox-icon {
display: inline-flex;
align-items: center;
Expand Down
5 changes: 0 additions & 5 deletions packages/arcodesign/components/radio/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
display: inline-flex;
align-items: center;

// Solve the style problem caused by the tabIndex attribute of lower versions of iOS
&:focus {
outline: none;
}

.radio-icon {
display: inline-flex;
align-items: center;
Expand Down
5 changes: 0 additions & 5 deletions packages/arcodesign/components/switch/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
}
}

// Solve the style problem caused by the tabIndex attribute of lower versions of iOS
&:focus {
outline: none;
}

&.type-android {
.use-var(width, switch-android-width);
.use-var(height, switch-android-height);
Expand Down
5 changes: 5 additions & 0 deletions packages/common-widgets/style/reset.less
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,8 @@ samp {
box-sizing: border-box;
}
}

// Solve the style problem caused by the tabIndex attribute of lower versions of iOS
div:focus {
outline: none;
}

0 comments on commit a0335e1

Please sign in to comment.