Skip to content

Commit cd3ba5b

Browse files
authored
fix(Banner): wrong style on link (#5384)
1 parent c8785c8 commit cd3ba5b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.changeset/petite-jeans-dig.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+
Fix `<Banner />` wrong sentiment on dark color

packages/ui/src/components/Banner/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1737,7 +1737,7 @@ exports[`Banner > should render correctly with dark theme 1`] = `
17371737
17381738
.emotion-14:hover::after,
17391739
.emotion-14:focus::after {
1740-
background-color: #34a8ff;
1740+
background-color: #bf96f8;
17411741
}
17421742
17431743
.emotion-14:active {

packages/ui/src/components/Banner/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,7 @@ export const Banner = ({
220220
<Link
221221
href={linkHref ?? ''}
222222
prominence={prominence}
223-
sentiment={
224-
theme === 'light' && variant !== 'promotional'
225-
? 'primary'
226-
: undefined
227-
}
223+
sentiment="primary"
228224
size="small"
229225
target="_blank"
230226
>

0 commit comments

Comments
 (0)