Skip to content

Commit

Permalink
fix(notificaiton/breadcrumb): update styles/remove @extend (#10231)
Browse files Browse the repository at this point in the history
### Related Ticket(s)

N/A
### Description

with update to `sass` we need to import 

### Changelog

**Changed**

- added styles from react package not coming through


<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
  • Loading branch information
ariellalgilmore authored Mar 15, 2023
1 parent a78a835 commit 96affe7
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ $css--plex: true !default;

:host(#{$prefix}-breadcrumb-item) {
@extend .#{$prefix}--breadcrumb-item;

&::after {
margin-left: $spacing-03;
color: $text-primary;
content: '/';
}
}

:host(#{$prefix}-breadcrumb-overflow-menu) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright IBM Corp. 2019, 2022
// Copyright IBM Corp. 2019, 2023
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -30,38 +30,52 @@ $css--plex: true !default;
display: none;
}

:host(#{$prefix}-inline-notification[low-contrast]) {
&[low-contrast] {
@extend .#{$prefix}--inline-notification--low-contrast;
}
}

:host(#{$prefix}-inline-notification[kind='success']) {
@extend .#{$prefix}--inline-notification--success;

&[low-contrast] {
@extend .#{$prefix}--inline-notification--low-contrast,
.#{$prefix}--inline-notification--success;
@include notification--experimental(
$support-success,
get-token-value($notification-colors, 'notification-background-success')
);
}
}

:host(#{$prefix}-inline-notification[kind='info']) {
@extend .#{$prefix}--inline-notification--info;

&[low-contrast] {
@extend .#{$prefix}--inline-notification--low-contrast,
.#{$prefix}--inline-notification--info;
@include notification--experimental(
$support-info,
get-token-value($notification-colors, 'notification-background-info')
);
}
}

:host(#{$prefix}-inline-notification[kind='warning']) {
@extend .#{$prefix}--inline-notification--warning;

&[low-contrast] {
@extend .#{$prefix}--inline-notification--low-contrast,
.#{$prefix}--inline-notification--warning;
@include notification--experimental(
$support-warning,
get-token-value($notification-colors, 'notification-background-warning')
);
}
}

:host(#{$prefix}-inline-notification[kind='error']) {
@extend .#{$prefix}--inline-notification--error;

&[low-contrast] {
@extend .#{$prefix}--inline-notification--low-contrast,
.#{$prefix}--inline-notification--error;
@include notification--experimental(
$support-error,
get-token-value($notification-colors, 'notification-background-error')
);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright IBM Corp. 2019, 2022
// Copyright IBM Corp. 2019, 2023
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
Expand All @@ -26,38 +26,52 @@ $css--plex: true !default;
display: none;
}

:host(#{$prefix}-toast-notification[low-contrast]) {
&[low-contrast] {
@extend .#{$prefix}--toast-notification--low-contrast;
}
}

:host(#{$prefix}-toast-notification[kind='success']) {
@extend .#{$prefix}--toast-notification--success;

&[low-contrast] {
@extend .#{$prefix}--toast-notification--low-contrast,
.#{$prefix}--toast-notification--success;
@include notification--experimental(
$support-success,
get-token-value($notification-colors, 'notification-background-success')
);
}
}

:host(#{$prefix}-toast-notification[kind='info']) {
@extend .#{$prefix}--toast-notification--info;

&[low-contrast] {
@extend .#{$prefix}--toast-notification--low-contrast,
.#{$prefix}--toast-notification--info;
@include notification--experimental(
$support-info,
get-token-value($notification-colors, 'notification-background-info')
);
}
}

:host(#{$prefix}-toast-notification[kind='warning']) {
@extend .#{$prefix}--toast-notification--warning;

&[low-contrast] {
@extend .#{$prefix}--toast-notification--low-contrast,
.#{$prefix}--toast-notification--warning;
@include notification--experimental(
$support-warning,
get-token-value($notification-colors, 'notification-background-warning')
);
}
}

:host(#{$prefix}-toast-notification[kind='error']) {
@extend .#{$prefix}--toast-notification--error;

&[low-contrast] {
@extend .#{$prefix}--toast-notification--low-contrast,
.#{$prefix}--toast-notification--error;
@include notification--experimental(
$support-error,
get-token-value($notification-colors, 'notification-background-error')
);
}
}

0 comments on commit 96affe7

Please sign in to comment.