Skip to content

Commit abc38d3

Browse files
committed
fix: oulined and ghost button background color on hover (#5570)
1 parent b9be81a commit abc38d3

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.changeset/plenty-bats-smell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ultraviolet/ui": patch
3+
---
4+
5+
`Button`: remove background color when hovering a disabled outlined/ghost button

packages/ui/src/components/Button/styles.css.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ function getOutlinedStyle(sentiment: (typeof sentiments)[number]) {
9999
'&:disabled': {
100100
color: monochrome.black.textDisabled,
101101
border: `1px solid ${monochrome.black.borderDisabled}`,
102+
background: 'none',
102103
},
103104
},
104105
}
@@ -117,6 +118,7 @@ function getOutlinedStyle(sentiment: (typeof sentiments)[number]) {
117118
'&:disabled': {
118119
color: monochrome.white.textDisabled,
119120
border: `1px solid ${monochrome.white.borderDisabled}`,
121+
background: 'none',
120122
},
121123
},
122124
}
@@ -137,6 +139,7 @@ function getOutlinedStyle(sentiment: (typeof sentiments)[number]) {
137139
'&:disabled': {
138140
color: selectedSentiment.textDisabled,
139141
border: `1px solid ${selectedSentiment.borderStrongDisabled}`,
142+
background: 'none',
140143
},
141144
},
142145
}
@@ -156,6 +159,7 @@ function getOutlinedStyle(sentiment: (typeof sentiments)[number]) {
156159
'&:disabled': {
157160
color: selectedSentiment.textDisabled,
158161
border: `1px solid ${selectedSentiment.borderDisabled}`,
162+
background: 'none',
159163
},
160164
},
161165
}
@@ -174,6 +178,7 @@ function getGhostStyle(sentiment: (typeof sentiments)[number]) {
174178
},
175179
'&:disabled': {
176180
color: monochrome.black.textDisabled,
181+
background: 'none',
177182
},
178183
},
179184
}
@@ -190,6 +195,7 @@ function getGhostStyle(sentiment: (typeof sentiments)[number]) {
190195
},
191196
'&:disabled': {
192197
color: monochrome.white.textDisabled,
198+
background: 'none',
193199
},
194200
},
195201
}
@@ -207,6 +213,7 @@ function getGhostStyle(sentiment: (typeof sentiments)[number]) {
207213
},
208214
'&:disabled': {
209215
color: selectedSentiment.textDisabled,
216+
background: 'none',
210217
},
211218
},
212219
}

0 commit comments

Comments
 (0)