Skip to content

Commit

Permalink
Merge pull request #999 from tblivet/feat/badge_color
Browse files Browse the repository at this point in the history
[NEW UI] Update badge color based on BO version
  • Loading branch information
ga-devfront authored Nov 12, 2024
2 parents e9229c2 + d5c9e5b commit 30454ee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion _dev/src/scss/components/_radio-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ $e: ".radio-card";
padding: 0.125rem 0.5rem;
background-color: var(--#{$ua-prefix}radio-card-badge-background-color);
border-color: var(--#{$ua-prefix}radio-card-badge-border-color);
border-radius: var(--#{$ua-prefix}border-radius);
font-size: 0.75rem;
font-weight: 600;
line-height: 1.5;
Expand Down Expand Up @@ -235,4 +234,16 @@ $e: ".radio-card";
}
}
}

&.v1-7-8-0,
&.v1-7-3-0 {
#{$e} {
--#{$ua-prefix}radio-card-badge-background-color: var(--#{$ua-prefix}blue-50);
--#{$ua-prefix}radio-card-badge-border-color: var(--#{$ua-prefix}blue-50);

&__badge {
border-radius: 1rem;
}
}
}
}
4 changes: 2 additions & 2 deletions storybook/.storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ const preview: Preview = {
const calledStory = story();
calledStory.template = twig(`
<div id="main">
<div id="content" class="bootstrap update-assistant ${selectedThemeClass}">
<div id="update_assistant">
<div id="content" class="bootstrap update-assistant">
<div id="update_assistant" class="${selectedThemeClass}">
${calledStory.template.getSource()}
${cssContents.map((cssFile) => `<link rel="stylesheet" type="text/css" href="${cssFile}" />`)}
</div>
Expand Down

0 comments on commit 30454ee

Please sign in to comment.