Skip to content

Commit 125e175

Browse files
Fix invalid generated CSS (HDS-5314) (#3131)
Co-authored-by: Cristiano Rastelli <cristiano.rastelli@hashicorp.com>
1 parent c9f37ce commit 125e175

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.changeset/mighty-masks-wave.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
"@hashicorp/design-system-components": patch
3+
---
4+
5+
<!-- START components/button -->
6+
`Button` - Removed CSS declaration for pseudo element in disabled state
7+
<!-- END -->
8+
9+
<!-- START components/dropdown -->
10+
`Dropdown` - Removed CSS declaration for pseudo element in disabled state
11+
<!-- END -->
12+
13+
<!-- START components/form/file-input -->
14+
`FileInput` - Removed CSS declaration for pseudo element in disabled state that led to invalid CSS (ignored by browsers)
15+
<!-- END -->

packages/components/src/styles/mixins/_button.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,6 @@ $hds-button-size-props: (
8484
border-color: var(--token-color-border-primary);
8585
box-shadow: none;
8686
cursor: not-allowed;
87-
88-
&::before {
89-
border-color: transparent;
90-
}
9187
}
9288

9389
@mixin hds-button-state-focus() {

0 commit comments

Comments
 (0)