diff --git a/.changeset/few-hotels-punch.md b/.changeset/few-hotels-punch.md new file mode 100644 index 0000000000..0397c062f4 --- /dev/null +++ b/.changeset/few-hotels-punch.md @@ -0,0 +1,5 @@ +--- +"@patternfly/elements": patch +--- + +``: fixed style regression on tab when a slotted icon is not present diff --git a/elements/pf-tabs/pf-tab.css b/elements/pf-tabs/pf-tab.css index 8b89b5b964..d36f3990f6 100644 --- a/elements/pf-tabs/pf-tab.css +++ b/elements/pf-tabs/pf-tab.css @@ -127,6 +127,10 @@ button:active { display: flex !important; } +[part="icon"][hidden] { + display: none !important; +} + :host([disabled][border-bottom="false"]) button, :host([aria-disabled="true"][border-bottom="false"]) button { --pf-c-tabs__link--before--BorderBottomWidth: 0;