Skip to content

Commit cc76761

Browse files
authored
Merge pull request #2 from brob/11ty-pagination
Adds some focus management in CSS
2 parents 4c2b205 + add0576 commit cc76761

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/styles.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ h2 {
101101
position: relative;
102102
z-index: 2;
103103
}
104+
.search-results {
105+
display: none;
106+
}
107+
.search:focus-within .search-results {
108+
display: block;
109+
}
104110
.searchResults {
105111
position: absolute;
106112
top: calc(100% - 1px);

0 commit comments

Comments
 (0)