-
Notifications
You must be signed in to change notification settings - Fork 54
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
Focus: Remove default z-index
#2501
base: main
Are you sure you want to change the base?
Changes from 3 commits
2b2c97d
be5c143
3253a1a
666d5de
c37ccf4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,12 +34,18 @@ | |
border: 0; | ||
@include transition($nav-link-transition); | ||
|
||
// Boosted mod: no focus | ||
// Boosted mod: handle focus differently focus | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "focus" word at the end to remove |
||
&:hover { | ||
color: var(--#{$prefix}nav-link-hover-color); | ||
text-decoration: if($link-hover-decoration == underline, none, null); | ||
} | ||
|
||
// Boosted mod | ||
&:focus[data-focus-visible-added] { | ||
z-index: $focus-visible-zindex; | ||
} | ||
// End mod | ||
|
||
// Boosted mod: no `&:focus-visible` | ||
|
||
// Disabled state lightens text | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
--#{$prefix}star-rating-checked-icon: #{$form-star-rating-checked-icon}; | ||
--#{$prefix}star-rating-unchecked-icon: #{$form-star-rating-unchecked-icon}; | ||
|
||
display: flex; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this change needed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
font-size: $form-star-size; | ||
background-color: transparent; | ||
|
||
|
@@ -24,7 +25,6 @@ | |
|
||
> label, | ||
span { | ||
float: left; | ||
louismaximepiton marked this conversation as resolved.
Show resolved
Hide resolved
|
||
width: 1em; | ||
height: 1em; | ||
|
||
|
@@ -54,6 +54,7 @@ | |
} | ||
|
||
> [data-focus-visible-added]:focus + label { | ||
z-index: $focus-visible-zindex; | ||
@include focus-visible(); | ||
outline-offset: -1px; | ||
box-shadow: inset 0 0 0 add(1px, $focus-visible-inner-width) var(--#{$prefix}focus-visible-inner-color); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,11 +11,17 @@ toc: true | |
|
||
## v5.3.4 | ||
|
||
<hr class="mb-4"> | ||
|
||
### Core | ||
|
||
- **Colors** | ||
- <span class="badge text-bg-warning">Warning</span> The dark mode red color hexadecimal value has been updated from `#f66` to `#ff4d4f` after a change in the design specifications to enhance the contrast for a better accessibility. This modification should be transparent for you except if you were using an hardcoded hexadecimal value directly in your websites. | ||
|
||
### CSS and Sass variables | ||
|
||
- <span class="badge text-bg-danger">Breaking</span> A parameter from the `focus-visible()` mixin has been removed. You don't need the `z-index` parameter anymore. Please reflect these modifications inside your website. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe explain this has an impact only if the project uses the mixin focus-visible() explicitly. Proposition: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I tried something based on your proposition in c37ccf4. |
||
|
||
## v5.3.3 | ||
|
||
<hr class="mb-4"> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this change needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be done separately if needed, if I remember well it was only an oversight from #1467.