Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: style problem caused by the "tabIndex" attribute of lower versions of iOS #217

Merged
merged 3 commits into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/arcodesign/components/checkbox/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
display: inline-flex;
align-items: center;

// iOS low-end machine style compatibility issues
// Solve the style problem caused by the tabIndex attribute of lower versions of iOS
&:focus {
outline: none;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/arcodesign/components/radio/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
display: inline-flex;
align-items: center;

// iOS low-end machine style compatibility issues
// Solve the style problem caused by the tabIndex attribute of lower versions of iOS
&:focus {
outline: none;
}
Expand Down
5 changes: 5 additions & 0 deletions packages/arcodesign/components/switch/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
}
}

// 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: 4 additions & 1 deletion scripts/sites/webpack.dev.home.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ const devConfig = merge(genBaseConfig(baseConfig, 'home'), {
},
port: 8824,
allowedHosts: "all",
open: true
open: true,
client: {
overlay: false,
},
},
plugins: [
new HtmlWebpackPlugin({
Expand Down
3 changes: 3 additions & 0 deletions scripts/sites/webpack.dev.mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ const devConfig = merge(baseConfig, {
port: 8822,
allowedHosts: "all",
open: true,
client: {
overlay: false,
},
...(compileComps.length
? {
open: true,
Expand Down
3 changes: 3 additions & 0 deletions scripts/sites/webpack.dev.pc.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ const devConfig = merge(genBaseConfig(baseConfig, 'pc'), {
port: 8823,
open: true,
allowedHosts: 'all',
client: {
overlay: false,
},
},
plugins: [
new SiteGeneratePlugin(),
Expand Down