Skip to content

Commit 38e75e0

Browse files
authored
1 parent 9a0e920 commit 38e75e0

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## Unreleased
88

9+
### Added
10+
11+
- Tertiary danger button styles (#1280)
12+
913
### Fixed
1014

1115
- Plugin sidebar panel rerendering (#1279)

src/assets/stylesheets/Button.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,23 @@
227227
border: 2px solid transparent;
228228
outline: 3px solid $rpf-brand-raspberry;
229229
}
230+
231+
&.btn--tertiary {
232+
background-color: inherit;
233+
color: var(--rpf-button-tertiary-danger-text-color);
234+
235+
svg {
236+
fill: var(--rpf-button-tertiary-danger-text-color);
237+
}
238+
239+
&:hover {
240+
background-color: var(--rpf-button-tertiary-danger-background-color-hover);
241+
}
242+
243+
&:active {
244+
background-color: var(--rpf-button-tertiary-danger-background-color-active);
245+
}
246+
}
230247
}
231248

232249
&--small {

src/assets/stylesheets/index.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ code {
9696
--rpf-button-secondary-text-color: var(--rpf-white);
9797

9898
--rpf-button-tertiary-text-color-hover: var(--rpf-grey-200);
99+
100+
--rpf-button-tertiary-danger-text-color: var(--rpf-red-600);
101+
--rpf-button-tertiary-danger-background-color-hover: rgba(255, 255, 255, 0.1);
102+
--rpf-button-tertiary-danger-background-color-active: rgba(255, 255, 255, 0.15);
99103
}
100104

101105
.rpf-button--secondary {
@@ -123,6 +127,10 @@ code {
123127

124128
--rpf-button-tertiary-text-color-hover: var(--rpf-grey-600);
125129

130+
--rpf-button-tertiary-danger-text-color: var(--rpf-alert-error);
131+
--rpf-button-tertiary-danger-background-color-hover: rgba(0, 0, 0, 0.03);
132+
--rpf-button-tertiary-danger-background-color-active: rgba(0, 0, 0, 0.05);
133+
126134
.rpf-button--secondary {
127135
border-color: var(--rpf-teal-800);
128136
}

0 commit comments

Comments
 (0)