Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/theme/src/theme/components/button/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,17 @@
.button.alt,
:global(.dark) .button.brand {
background: linear-gradient(to right, var(--rp-c-brand) 50%, #ffffff 50%)
right bottom / 200% 100%;
// add 1px to avoid subpixel problems (lagging 1px violet background) in odd-width buttons
right bottom / calc(200% + 1px) 100%;
color: #201f24;
}

// dark mode
.button.brand,
:global(.dark) .button.alt {
background: linear-gradient(to right, var(--rp-c-brand) 50%, #201f24 50%)
right bottom / 200% 100%;
// add 1px to avoid subpixel problems (lagging 1px violet background) in odd-width buttons
right bottom / calc(200% + 1px) 100%;
color: #ffffff;
}

Expand Down