[go: nahoru, domu]

Skip to content
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

Visually-hidden: Remove position: absolute for captions #37533

Merged
merged 1 commit into from
Jan 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix
  • Loading branch information
louismaximepiton authored and mdo committed Dec 29, 2022
commit 1f34551ef60ea3c08904d556bd2300eefbf56edb
6 changes: 5 additions & 1 deletion scss/mixins/_visually-hidden.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// See: https://kittygiraudel.com/2016/10/13/css-hide-and-seek/

@mixin visually-hidden() {
position: absolute !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
Expand All @@ -15,6 +14,11 @@
clip: rect(0, 0, 0, 0) !important;
white-space: nowrap !important;
border: 0 !important;

// Fix for positioned table caption that could become anonymous cells
&:not(caption) {
position: absolute !important;
}
}

// Use to only display content when it's focused, or one of its child elements is focused
Expand Down