Skip to content

Commit

Permalink
fix: style problem caused by the "tabIndex" attribute of lower versio…
Browse files Browse the repository at this point in the history
…ns of iOS (#217)
  • Loading branch information
huangguang1999 authored Dec 27, 2023
1 parent 6a73c43 commit 6a9406e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 11 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;

// iOS low-end machine style compatibility issues
&: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;

// iOS low-end machine style compatibility issues
&:focus {
outline: none;
}

.radio-icon {
display: inline-flex;
align-items: center;
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
[tabIndex='0']:focus {
outline: none;
}
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

0 comments on commit 6a9406e

Please sign in to comment.