Skip to content

Commit

Permalink
feat(Modal): color updates (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
amje authored Jun 17, 2022
1 parent 7837ee8 commit be004a6
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Modal/Modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ $block: '.#{$ns}modal';
display: inline-block;
margin: var(--yc-modal-margin);
text-align: left;
background-color: var(--yc-color-base-float);
background-color: var(--yc-color-base-modal);
border-radius: var(--yc-modal-border-radius);
}

Expand Down
5 changes: 5 additions & 0 deletions src/demo/colors/Base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ const floats = [
title: 'Float Accent Hover',
description: 'Hover for Float Accent.',
},
{
name: 'base-modal',
title: 'Modal',
description: 'Floating components with a veil.',
},
];

export const RenderBackgrounds = () => (
Expand Down
1 change: 1 addition & 0 deletions styles/colors/base/dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@
--yc-color-base-float-accent: var(--yc-color-private-white-150-solid);
--yc-color-base-float-accent-hover: var(--yc-color-private-white-200-solid);
--yc-color-base-float-announcement: var(--yc-color-private-white-150-solid);
--yc-color-base-modal: var(--yc-color-private-black-rock-850);
}
1 change: 1 addition & 0 deletions styles/colors/base/light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@
--yc-color-base-float-accent: var(--yc-color-private-white-1000);
--yc-color-base-float-accent-hover: var(--yc-color-private-white-850);
--yc-color-base-float-announcement: var(--yc-color-private-cool-grey-50-solid);
--yc-color-base-modal: var(--yc-color-private-white-1000);
}
1 change: 1 addition & 0 deletions styles/colors/private/dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
--yc-color-private-black-300: rgba(0, 0, 0, 0.3);
--yc-color-private-black-400: rgba(0, 0, 0, 0.4);
--yc-color-private-black-500: rgba(0, 0, 0, 0.5);
--yc-color-private-black-600: rgba(0, 0, 0, 0.6);
--yc-color-private-black-700: rgba(0, 0, 0, 0.7);
--yc-color-private-black-900: rgba(0, 0, 0, 0.9);

Expand Down
2 changes: 1 addition & 1 deletion styles/colors/sfx/dark.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@mixin yc-colors-sfx-dark {
--yc-color-sfx-veil: var(--yc-color-private-black-400);
--yc-color-sfx-veil: var(--yc-color-private-black-600);
--yc-color-sfx-shadow: var(--yc-color-private-black-200);
--yc-color-sfx-shadow-heavy: var(--yc-color-private-black-500);
--yc-color-sfx-fade: var(--yc-color-private-white-250);
Expand Down

0 comments on commit be004a6

Please sign in to comment.