Skip to content

Commit

Permalink
Merge pull request #46 from WebDevSimplified/fix-typo
Browse files Browse the repository at this point in the history
Fix Typo
  • Loading branch information
WebDevSimplified authored Jul 30, 2024
2 parents 7008c0a + 6f54186 commit 48c72d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/2024-07/css-focus-crash-course/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ It is important to know that the child elements do not need to have a focus styl

## The Secret Fourth Focus Method

The final focus method is a bit different since there is no built in CSS pseudo class for `:focus-visible-within`. Instead we have to write our own custom CSS selector that does the same thing. This custom selector combines hwo `:focus-within` and `:focus-visible` work to create a focus method that only shows focus styles when a child of the element would have its `:focus-visible` styles shown.
The final focus method is a bit different since there is no built in CSS pseudo class for `:focus-visible-within`. Instead we have to write our own custom CSS selector that does the same thing. This custom selector combines how `:focus-within` and `:focus-visible` work to create a focus method that only shows focus styles when a child of the element would have its `:focus-visible` styles shown.

```css {5}
.container {
Expand Down

0 comments on commit 48c72d7

Please sign in to comment.