Skip to content
Prev Previous commit
Next Next commit
Add [hidden][hidden] { display: none !important}
/cc @jonrohan — I did this here rather than in normalize.scss because I didn't want to lose it if we ever update that file again.
  • Loading branch information
shawnbot authored Nov 13, 2018
commit 0d96a8091ee4aae3d2f2318b3a2f91693d62a0b7
6 changes: 6 additions & 0 deletions modules/primer-base/lib/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ button {
border-radius: 0;
}

// increase the selector specificity for [hidden]
// so that it always overrides utility classes (.d-block, etc.)
[hidden][hidden] {
display: none !important;
}

details {
summary { cursor: pointer; }

Expand Down