Fix: "Skip to transcript" button spacing (fixes #312)#313
Conversation
… bottom margin when visible
kirsty-hames
left a comment
There was a problem hiding this comment.
Works as expected thanks @swashbuck. Please see query regarding the use of .visually-hidden.
| } | ||
|
|
||
| &:not(:focus-visible) { | ||
| display: block; |
There was a problem hiding this comment.
There's an open Core PR that relates to this. Going by the issue discussion the intention is to update 'Skip to...' buttons to use the .visually-hidden mixin. I can't see any issues have been raised to update the other plugins as of yet but do we want to include in this PR?
There was a problem hiding this comment.
Thanks, @kirsty-hames . Since that PR is still open, I think it would be better to update it separately so as to not hold up this fix? That PR would just change .u-display-none to .visually-hidden, right?
There was a problem hiding this comment.
The PR as is works as expected so happy to proceed 👍
When the Core #606 PR is merged this can be revisited. We'd still need .u-display-none but would replace the :focus-visible styles with .visually-hidden-focusable.
// Skip to transcript button
&__skip-to-transcript {
margin-bottom: @item-margin;
html:not(.has-accessibility) & {
.u-display-none;
}
.visually-hidden-focusable;
}
|
🎉 This PR is included in version 6.8.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Fix #312
Fix
Testing