-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Color update #698
Color update #698
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@microsoft/atlas-css': minor | ||
--- | ||
|
||
Update badge, button, control, form, notification, progress bar colors. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
$notification-background: $secondary-background !default; | ||
$notification-background: $secondary-background-fluent !default; | ||
$notification-padding: $spacer-5 !default; | ||
|
||
$notification-font-size: $font-size-7 !default; | ||
$notification-color: $text !default; | ||
$notification-color: $text-fluent !default; | ||
|
||
$notification-border-color: $control-border !default; | ||
$notification-border-width: $border-width !default; | ||
|
@@ -33,11 +33,26 @@ $notification-dismiss-margin: $spacer-2 !default; | |
$base: nth($color-set, $color-index-base); | ||
$dark: nth($color-set, $color-index-dark); | ||
$background: nth($color-set, $color-index-background); | ||
$border: nth($color-set, $color-index-border); | ||
|
||
&.notification-#{$name} { | ||
border-color: $dark; | ||
background-color: $background; | ||
color: $dark; | ||
@if $name == 'tertiary' { | ||
border-color: $border; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To me, this indicates we may not be on the right track with how we're updating. Lots more |
||
background-color: $background; | ||
color: $dark; | ||
} @else if $name == 'secondary' { | ||
border-color: $border; | ||
background-color: $background; | ||
color: $dark; | ||
} @else if $name == 'info' { | ||
border-color: $border; | ||
background-color: $background; | ||
color: $dark; | ||
} @else { | ||
border-color: $border; | ||
background-color: $background; | ||
color: $text-fluent; | ||
} | ||
|
||
&.is-loading::before { | ||
border-color: transparent transparent $dark $dark; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
$progress-bar-background-color: $secondary-background-glow-high-contrast !default; | ||
$progress-bar-value-background-color: $primary !default; | ||
$progress-bar-value-background-color-warning: $warning !default; | ||
$progress-bar-value-background-color-warning: $colorPaletteDarkOrangeBackground3 !default; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. avoid using palette colors directly. it should be a theme color with a semantic name if possible There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
$progress-bar-value-background-color-danger: $danger !default; | ||
$progress-bar-value-background-color-success: $success !default; | ||
$progress-bar-height: $spacer-2 !default; | ||
|
@@ -70,6 +70,16 @@ $progress-bar-indeterminate-animation-duration: 2s !default; | |
} | ||
} | ||
|
||
.theme-dark &.progress-bar-warning { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
&::-webkit-progress-value { | ||
background-color: $progress-bar-value-background-color-warning; | ||
} | ||
|
||
&::-moz-progress-bar { | ||
background-color: $progress-bar-value-background-color-warning; | ||
} | ||
} | ||
|
||
&:indeterminate { | ||
animation-name: slide-background; | ||
animation-timing-function: linear; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert and maybe update
border-white-high-contrast