Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions modules/primer-base/lib/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,12 @@ th {
button {
cursor: pointer;
}

details {
summary { cursor: pointer; }

&:not([open]) {
// Set details content hidden by default for browsers that don't do this
> *:not(summary) { display: none; }
}
}
9 changes: 9 additions & 0 deletions modules/primer-buttons/lib/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,12 @@
}
}
}

.details-reset {
// Remove marker added by the display: list-item browser default
> summary { list-style: none; }
// Remove marker added by details polyfill
> summary::before { display: none; }
// Remove marker added by Chrome
> summary::-webkit-details-marker { display: none; }
}