Skip to content

Commit 78f3333

Browse files
fix(tabs): style regression when no icon is present (#2519)
* fix(tabs): style regression when no icon is present * chore(tabs): add changeset * chore(tabs): update changeset --------- Co-authored-by: Benny Powers <[email protected]>
1 parent cdd1d42 commit 78f3333

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/few-hotels-punch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@patternfly/elements": patch
3+
---
4+
5+
`<pf-tabs>`: fixed style regression on tab when a slotted icon is not present

elements/pf-tabs/pf-tab.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ button:active {
127127
display: flex !important;
128128
}
129129

130+
[part="icon"][hidden] {
131+
display: none !important;
132+
}
133+
130134
:host([disabled][border-bottom="false"]) button,
131135
:host([aria-disabled="true"][border-bottom="false"]) button {
132136
--pf-c-tabs__link--before--BorderBottomWidth: 0;

0 commit comments

Comments
 (0)