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

Improve accessibility story for custom focus styles #2460

Merged
merged 4 commits into from
Oct 8, 2020
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add `col-span-full` and `row-span-full` ([#2471](https://github.com/tailwindlabs/tailwindcss/pull/2471))
- Promote `defaultLineHeights` and `standardFontWeights` from experimental to future
- Add new `presets` config option ([#2474](https://github.com/tailwindlabs/tailwindcss/pull/2474))
- Make `outline` configurable, `outline-none` more accessible by default, and add `outline-black` and `outline-white` ([#2460](https://github.com/tailwindlabs/tailwindcss/pull/2460))

## [1.8.12] - 2020-10-07

Expand Down
156 changes: 144 additions & 12 deletions __tests__/fixtures/tailwind-output-flagged.css
Original file line number Diff line number Diff line change
Expand Up @@ -25665,11 +25665,33 @@ video {
}

.outline-none {
outline: 0;
outline: 2px solid transparent;
outline-offset: 2px;
}

.outline-white {
outline: 2px dotted white;
outline-offset: 2px;
}

.outline-black {
outline: 2px dotted black;
outline-offset: 2px;
}

.focus\:outline-none:focus {
outline: 0;
outline: 2px solid transparent;
outline-offset: 2px;
}

.focus\:outline-white:focus {
outline: 2px dotted white;
outline-offset: 2px;
}

.focus\:outline-black:focus {
outline: 2px dotted black;
outline-offset: 2px;
}

.overflow-auto {
Expand Down Expand Up @@ -69260,11 +69282,33 @@ video {
}

.sm\:outline-none {
outline: 0;
outline: 2px solid transparent;
outline-offset: 2px;
}

.sm\:outline-white {
outline: 2px dotted white;
outline-offset: 2px;
}

.sm\:outline-black {
outline: 2px dotted black;
outline-offset: 2px;
}

.sm\:focus\:outline-none:focus {
outline: 0;
outline: 2px solid transparent;
outline-offset: 2px;
}

.sm\:focus\:outline-white:focus {
outline: 2px dotted white;
outline-offset: 2px;
}

.sm\:focus\:outline-black:focus {
outline: 2px dotted black;
outline-offset: 2px;
}

.sm\:overflow-auto {
Expand Down Expand Up @@ -112825,11 +112869,33 @@ video {
}

.md\:outline-none {
outline: 0;
outline: 2px solid transparent;
outline-offset: 2px;
}

.md\:outline-white {
outline: 2px dotted white;
outline-offset: 2px;
}

.md\:outline-black {
outline: 2px dotted black;
outline-offset: 2px;
}

.md\:focus\:outline-none:focus {
outline: 0;
outline: 2px solid transparent;
outline-offset: 2px;
}

.md\:focus\:outline-white:focus {
outline: 2px dotted white;
outline-offset: 2px;
}

.md\:focus\:outline-black:focus {
outline: 2px dotted black;
outline-offset: 2px;
}

.md\:overflow-auto {
Expand Down Expand Up @@ -156390,11 +156456,33 @@ video {
}

.lg\:outline-none {
outline: 0;
outline: 2px solid transparent;
outline-offset: 2px;
}

.lg\:outline-white {
outline: 2px dotted white;
outline-offset: 2px;
}

.lg\:outline-black {
outline: 2px dotted black;
outline-offset: 2px;
}

.lg\:focus\:outline-none:focus {
outline: 0;
outline: 2px solid transparent;
outline-offset: 2px;
}

.lg\:focus\:outline-white:focus {
outline: 2px dotted white;
outline-offset: 2px;
}

.lg\:focus\:outline-black:focus {
outline: 2px dotted black;
outline-offset: 2px;
}

.lg\:overflow-auto {
Expand Down Expand Up @@ -199955,11 +200043,33 @@ video {
}

.xl\:outline-none {
outline: 0;
outline: 2px solid transparent;
outline-offset: 2px;
}

.xl\:outline-white {
outline: 2px dotted white;
outline-offset: 2px;
}

.xl\:outline-black {
outline: 2px dotted black;
outline-offset: 2px;
}

.xl\:focus\:outline-none:focus {
outline: 0;
outline: 2px solid transparent;
outline-offset: 2px;
}

.xl\:focus\:outline-white:focus {
outline: 2px dotted white;
outline-offset: 2px;
}

.xl\:focus\:outline-black:focus {
outline: 2px dotted black;
outline-offset: 2px;
}

.xl\:overflow-auto {
Expand Down Expand Up @@ -243520,11 +243630,33 @@ video {
}

.\32xl\:outline-none {
outline: 0;
outline: 2px solid transparent;
outline-offset: 2px;
}

.\32xl\:outline-white {
outline: 2px dotted white;
outline-offset: 2px;
}

.\32xl\:outline-black {
outline: 2px dotted black;
outline-offset: 2px;
}

.\32xl\:focus\:outline-none:focus {
outline: 0;
outline: 2px solid transparent;
outline-offset: 2px;
}

.\32xl\:focus\:outline-white:focus {
outline: 2px dotted white;
outline-offset: 2px;
}

.\32xl\:focus\:outline-black:focus {
outline: 2px dotted black;
outline-offset: 2px;
}

.\32xl\:overflow-auto {
Expand Down
Loading