Skip to content

Commit

Permalink
Merge pull request liferay#5913 from pat270/LPD-45685
Browse files Browse the repository at this point in the history
fix(@clayui/css): LPD-45685 Multi Step Nav should use focus-visible
  • Loading branch information
matuzalemsteles authored Jan 13, 2025
2 parents dad5a03 + 9a18636 commit 5454a61
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 16 deletions.
22 changes: 14 additions & 8 deletions packages/clay-css/src/scss/cadmin/components/_multi-step-nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,11 @@
}
}

&:focus {
box-shadow: $cadmin-multi-step-icon-disabled-focus-box-shadow;
@at-root {
&.focus,
#{$focus-visible-selector} {
box-shadow: $cadmin-multi-step-icon-disabled-focus-box-shadow;
}
}
}

Expand Down Expand Up @@ -267,12 +270,15 @@
text-decoration: $cadmin-multi-step-icon-hover-text-decoration;
}

&:focus {
background-color: $cadmin-multi-step-icon-focus-bg;
box-shadow: $cadmin-multi-step-icon-focus-box-shadow;
color: $cadmin-multi-step-icon-focus-color;
outline: $cadmin-multi-step-icon-focus-outline;
text-decoration: $cadmin-multi-step-icon-focus-text-decoration;
@at-root {
&.focus,
#{$focus-visible-selector} {
background-color: $cadmin-multi-step-icon-focus-bg;
box-shadow: $cadmin-multi-step-icon-focus-box-shadow;
color: $cadmin-multi-step-icon-focus-color;
outline: $cadmin-multi-step-icon-focus-outline;
text-decoration: $cadmin-multi-step-icon-focus-text-decoration;
}
}

&[data-multi-step-icon]:before {
Expand Down
22 changes: 14 additions & 8 deletions packages/clay-css/src/scss/components/_multi-step-nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,11 @@
}
}

&:focus {
box-shadow: $multi-step-icon-disabled-focus-box-shadow;
@at-root {
&.focus,
#{$focus-visible-selector} {
box-shadow: $multi-step-icon-disabled-focus-box-shadow;
}
}
}

Expand Down Expand Up @@ -277,12 +280,15 @@
text-decoration: $multi-step-icon-hover-text-decoration;
}

&:focus {
background-color: $multi-step-icon-focus-bg;
box-shadow: $multi-step-icon-focus-box-shadow;
color: $multi-step-icon-focus-color;
outline: $multi-step-icon-focus-outline;
text-decoration: $multi-step-icon-focus-text-decoration;
@at-root {
&.focus,
#{$focus-visible-selector} {
background-color: $multi-step-icon-focus-bg;
box-shadow: $multi-step-icon-focus-box-shadow;
color: $multi-step-icon-focus-color;
outline: $multi-step-icon-focus-outline;
text-decoration: $multi-step-icon-focus-text-decoration;
}
}

&[data-multi-step-icon]::before {
Expand Down

0 comments on commit 5454a61

Please sign in to comment.