-
Notifications
You must be signed in to change notification settings - Fork 55
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: "Skip to transcript" button spacing (fixes #312) #313
base: master
Are you sure you want to change the base?
Conversation
… bottom margin when visible
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.
👀
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.
Works as expected thanks @swashbuck. Please see query regarding the use of .visually-hidden
.
|
||
html:not(.has-accessibility) & { | ||
.u-display-none; | ||
} | ||
|
||
&:not(:focus-visible) { | ||
display: block; |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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;
}
Fix #312
Fix
Testing