Skip to content

Commit

Permalink
FIX: Allow slight overflow on all sticky elements
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhieb committed Jul 18, 2024
1 parent 919b9f7 commit 015c789
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
22 changes: 15 additions & 7 deletions pages/Search/Search.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

.sticky {
align-items: center;
inline-size: calc(100vw - 1em);
inline-size: 100vw;
inset-inline: 0;
max-inline-size: calc(100vw - 1em);
max-inline-size: 100vw;
position: sticky;
}

Expand Down Expand Up @@ -89,11 +89,19 @@ h2 {
}

#language-select {
all: revert; /* Use default browser styles. */
font-family: 'Times New Roman', serif; /* This is necessary because the adjustments to ligatures don't apply within the <select> element. */
font-size: 100%;
line-height: 1.5;
padding: 0.25em;

all: revert; /* Use default browser styles. */
border-radius: var(--border-radius);
font-family: 'Times New Roman', serif; /* This is necessary because the adjustments to ligatures don't apply within the <select> element. */
font-size: 100%;
line-height: 1.5;
padding: 0.25em;

@media (prefers-color-scheme: dark) {
background-color: var(--off-black);
color: var(--off-white);
}

}

#main {
Expand Down
4 changes: 4 additions & 0 deletions pages/Search/Search.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ describe(`Search`, function() {
cy.get(`#results tbody tr`).should(`have.length`, 1)
})

it.only(`saves the user's selection across visits`, function() {
cy.visit(`/search`)
})

})

describe(`Pagination`, function() {
Expand Down

0 comments on commit 015c789

Please sign in to comment.