-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move code samples to separate files and update links in documentation
- Loading branch information
1 parent
d2bec38
commit 1ea5f1d
Showing
595 changed files
with
24,301 additions
and
17,025 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2,319 changes: 0 additions & 2,319 deletions
2,319
docs/content/guides/accessibility/accessibility.md
This file was deleted.
Oops, something went wrong.
233 changes: 233 additions & 0 deletions
233
docs/content/guides/accessibility/accessibility/accessibility.md
Large diffs are not rendered by default.
Oops, something went wrong.
71 changes: 71 additions & 0 deletions
71
docs/content/guides/accessibility/accessibility/example1.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
.checkbox-container { | ||
padding-bottom: 1rem; | ||
display: grid; | ||
grid-template-columns: repeat(2, minmax(0, 1fr)); | ||
} | ||
|
||
.checkbox-group { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 0.5rem; | ||
} | ||
|
||
.checkbox-group > div { | ||
display: flex; | ||
} | ||
|
||
.checkbox-group > div > label { | ||
display: flex; | ||
gap: 0.2rem; | ||
} | ||
|
||
.external-link { | ||
margin-left: 0.5rem; | ||
position: relative; | ||
top: 2px; | ||
color: black; | ||
} | ||
|
||
.external-link:hover { | ||
color: #0000ee; | ||
} | ||
|
||
.placeholder-input { | ||
max-width: 20rem; | ||
padding: 0.5rem 0.75rem; | ||
font-size: 0.875rem; | ||
line-height: 1.25rem; | ||
color: black; | ||
border: 1px solid #e4e4e7; | ||
border-radius: 6px; | ||
} | ||
|
||
.option-label { | ||
align-items: flex-start; | ||
} | ||
|
||
/* | ||
We want the focus to be around input and label, in order to achieve this, | ||
we remove focus from the input and add it to the label (wrapper in this case) | ||
we then use the :focus-within pseudo class plus native focus styles | ||
https://css-tricks.com/copy-the-browsers-native-focus-styles/ | ||
*/ | ||
.option-label:focus-within { | ||
outline: 5px auto Highlight; | ||
outline: 5px auto -webkit-focus-ring-color; | ||
} | ||
|
||
.option-label > input:focus { | ||
outline: none; | ||
} | ||
|
||
/* fixes dark theme conflicting with text color */ | ||
html.theme-dark .option-label { | ||
color: #e5ebf1 !important; | ||
} | ||
|
||
.example-container { | ||
gap: 1rem; | ||
display: flex; | ||
flex-direction: column; | ||
} |
Oops, something went wrong.