Skip to content

Commit

Permalink
Improve accessibility story for custom focus styles (#2460)
Browse files Browse the repository at this point in the history
* Improve accessibility story for custom focus styles

* Update fixtures

* Make outline configurable, add white/black dotted outlines

* Update changelog
  • Loading branch information
adamwathan authored Oct 8, 2020
1 parent b299b6f commit f3a1d5f
Show file tree
Hide file tree
Showing 8 changed files with 647 additions and 58 deletions.
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

0 comments on commit f3a1d5f

Please sign in to comment.