Skip to content

Commit

Permalink
fix(button)!: remove shadow <button>
Browse files Browse the repository at this point in the history
Closes #2706
  • Loading branch information
bennypowers committed Mar 19, 2024
1 parent 53aae9a commit 3d04aaa
Show file tree
Hide file tree
Showing 7 changed files with 549 additions and 470 deletions.
4 changes: 4 additions & 0 deletions .changeset/curly-wings-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
"@patternfly/elements": major
---
`<pf-button>`: improves accessibility of elements that use `<pf-button>` by giving the custom element itself the `button` role
91 changes: 0 additions & 91 deletions elements/pf-button/pf-button-base.css

This file was deleted.

2 changes: 1 addition & 1 deletion elements/pf-button/pf-button-icon.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* *
******************************/

.pf-button.hasIcon {
.hasIcon {
gap: calc(2 * var(--pf-c-button__icon--m-start--MarginLeft,
var(--pf-global--spacer--xs, 0.25rem)));
}
Expand Down
60 changes: 0 additions & 60 deletions elements/pf-button/pf-button-plain.css

This file was deleted.

3 changes: 3 additions & 0 deletions elements/pf-button/pf-button-tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,7 @@
--pf-c-button--disabled__c-badge--BackgroundColor: var(--pf-global--BackgroundColor--200, #f0f0f0);
--pf-c-button--m-primary__c-badge--BorderColor: var(--pf-global--BorderColor--300, #f0f0f0);
--pf-c-button--m-primary__c-badge--BorderWidth: var(--pf-global--BorderWidth--sm, 1px);

--_button-color: var(--pf-c-button--m-primary--Color);
--_button-background-color: var(--pf-c-button--m-primary--BackgroundColor);
}
Loading

0 comments on commit 3d04aaa

Please sign in to comment.