mirror of
https://github.com/primer/css.git
synced 2024-11-22 19:01:02 +03:00
Rename SegmentedControl--iconOnly-whenNarrow to SegmentedControl-button--iconOnly-whenNarrow and place on button (#2202)
* Rename whenNarrow so it's a class on the button * Create silent-crews-pay.md
This commit is contained in:
parent
2c0fec7b39
commit
b74e78b253
5
.changeset/silent-crews-pay.md
Normal file
5
.changeset/silent-crews-pay.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@primer/css": patch
|
||||
---
|
||||
|
||||
Rename SegmentedControl--iconOnly-whenNarrow to SegmentedControl-button--iconOnly-whenNarrow and place on button
|
@ -135,10 +135,8 @@
|
||||
|
||||
// Icon only when narrow
|
||||
@media (max-width: $width-md) {
|
||||
.SegmentedControl--iconOnly-whenNarrow {
|
||||
.SegmentedControl-button {
|
||||
width: var(--primer-control-medium-size, 32px);
|
||||
}
|
||||
.SegmentedControl-button--iconOnly-whenNarrow {
|
||||
width: var(--primer-control-medium-size, 32px);
|
||||
|
||||
.SegmentedControl-content {
|
||||
padding: 0;
|
||||
@ -163,7 +161,7 @@
|
||||
|
||||
// reset for icon-only buttons
|
||||
.SegmentedControl-button--iconOnly,
|
||||
.SegmentedControl--iconOnly-whenNarrow .SegmentedControl-button {
|
||||
.SegmentedControl-button--iconOnly-whenNarrow {
|
||||
min-width: unset;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user