Skip to content

Commit

Permalink
Add fallback for browsers not yet supporting the :has() selector
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Oct 11, 2023
1 parent 8b321a1 commit ef3f040
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@ $swatch-gap: 12px;
border-bottom-right-radius: $radius-block-ui;
}

// Less accurate fallback to detect the last instance of this item
// for older browsers not yet supporting the `:has()` selector.
@supports not selector(:has(*)) {
&.last {
border-bottom-left-radius: $radius-block-ui;
border-bottom-right-radius: $radius-block-ui;
}
}

> div,
> div > button {
border-radius: inherit;
Expand Down

0 comments on commit ef3f040

Please sign in to comment.