Skip to content

Commit

Permalink
feat: add professional-inverse theme to ft-concept-button (#1738)
Browse files Browse the repository at this point in the history
  • Loading branch information
ft-vladislav-hadzhiyski authored Jul 5, 2024
1 parent fde7feb commit 1282927
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
12 changes: 10 additions & 2 deletions components/ft-concept-button/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@ $_ftConceptButtonThemes: (
highlight: oColorsByName('black-80'),
pressed-highlight: rgba(oColorsByName('black'), 0.2),
disabled: rgba(oColorsByName('black'), 0.5)
)
),
professional-inverse: (
background: oColorsByName('mint'),
text: oColorsByName('black'),
highlight: oColorsByName('mint'),
pressed-highlight: rgba(oColorsByName('mint'), 0.15),
disabled: rgba(oColorsByName('black'), 0.5)
),
);

@function _ftConceptButtonGetThemeColor($key) {
Expand Down Expand Up @@ -126,7 +133,7 @@ $_ftConceptButtonThemes: (
@include oNormaliseFocusContentForElementColour(
_ftConceptButtonGetThemeColor(background)
);
};
}

background-color: transparent;
border: 1px solid _ftConceptButtonGetThemeColor(background);
Expand Down Expand Up @@ -182,6 +189,7 @@ $_ftConceptButtonThemes: (
'opinion',
'inverse',
'monochrome',
'professional-inverse',
)
) {
.ft-concept-button__link,
Expand Down
8 changes: 7 additions & 1 deletion components/ft-concept-button/src/tsx/concept-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ export interface ConceptButtonProps {
// descriptive label for button
ariaLabel?: string;
// button theme
theme?: 'standard' | 'inverse' | 'opinion' | 'monochrome' | 'inverse-monochrome';
theme?:
| 'standard'
| 'inverse'
| 'opinion'
| 'monochrome'
| 'inverse-monochrome'
| 'professional-inverse';
// button type
type?: 'concept' | 'follow';
// whether the button is currently pressed
Expand Down

0 comments on commit 1282927

Please sign in to comment.