Skip to content

Commit 2012d48

Browse files
author
Karol Tatała
committed
XW-3171 | banner notifications styles refactor
1 parent 0608361 commit 2012d48

File tree

8 files changed

+26
-28
lines changed

8 files changed

+26
-28
lines changed

app/templates/route-components/banner-notifications.hbs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</p>
99

1010
{{#component-demo}}
11-
<div class="wds-banner-notification-container">
11+
<div class="wds-banner-notification__container">
1212
{{#wds-banner-notification type='alert'}}
1313
This is an error message.
1414
{{/wds-banner-notification}}
@@ -25,7 +25,7 @@
2525
</p>
2626

2727
{{#component-demo}}
28-
<div class="wds-banner-notification-container">
28+
<div class="wds-banner-notification__container">
2929
{{#wds-banner-notification type='warning'}}
3030
This is a warning message.
3131
{{/wds-banner-notification}}
@@ -43,7 +43,7 @@
4343

4444

4545
{{#component-demo}}
46-
<div class="wds-banner-notification-container">
46+
<div class="wds-banner-notification__container">
4747
{{#wds-banner-notification type='success'}}
4848
This is a confirmation message.
4949
{{/wds-banner-notification}}
@@ -60,7 +60,7 @@
6060
</p>
6161

6262
{{#component-demo}}
63-
<div class="wds-banner-notification-container">
63+
<div class="wds-banner-notification__container">
6464
{{#wds-banner-notification type='message'}}
6565
This is a general notification message.
6666
{{/wds-banner-notification}}
@@ -73,7 +73,7 @@
7373
<h2>Stacked</h2>
7474

7575
{{#component-demo}}
76-
<div class="wds-banner-notification-container">
76+
<div class="wds-banner-notification__container">
7777
{{#wds-banner-notification type='message'}}
7878
Stacked notification 1.
7979
{{/wds-banner-notification}}

dist/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/scss/wds-components/_banner-notification.scss

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
.wds-banner-notification-container {
2-
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
3-
}
4-
51
.wds-banner-notification {
62
background-color: $wds-color-white;
73
color: $wds-color-light-gray;
84
display: flex;
95

6+
&__container {
7+
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
8+
}
9+
1010
&__icon {
1111
align-items: center;
1212
color: $wds-color-white;
@@ -44,9 +44,8 @@
4444
padding: 18px;
4545
}
4646

47-
+ .wds-banner-notification .wds-banner-notification {
48-
&__close, &__text {
49-
border-top: 1px solid #ccc;
50-
}
47+
& + & &__close,
48+
& + & &__text {
49+
border-top: 1px solid #ccc;
5150
}
5251
}

docs/assets/design-system.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/design-system.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/wds.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta name="viewport" content="width=device-width, initial-scale=1">
99

1010

11-
<meta name="design-system/config/environment" content="%7B%22modulePrefix%22%3A%22design-system%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22/%22%2C%22locationType%22%3A%22hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%7D%2C%22APP%22%3A%7B%22name%22%3A%22design-system%22%2C%22version%22%3A%228.7.0+b5a051a5%22%7D%2C%22exportApplicationGlobal%22%3Afalse%7D" />
11+
<meta name="design-system/config/environment" content="%7B%22modulePrefix%22%3A%22design-system%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22/%22%2C%22locationType%22%3A%22hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%7D%2C%22APP%22%3A%7B%22name%22%3A%22design-system%22%2C%22version%22%3A%228.7.0+0608361c%22%7D%2C%22exportApplicationGlobal%22%3Afalse%7D" />
1212

1313
<link rel="stylesheet" href="/assets/vendor.css">
1414
<link rel="stylesheet" href="/assets/design-system.css">

style-guide/styles/wds-components/_banner-notification.scss

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
.wds-banner-notification-container {
2-
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
3-
}
4-
51
.wds-banner-notification {
62
background-color: $wds-color-white;
73
color: $wds-color-light-gray;
84
display: flex;
95

6+
&__container {
7+
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2);
8+
}
9+
1010
&__icon {
1111
align-items: center;
1212
color: $wds-color-white;
@@ -44,9 +44,8 @@
4444
padding: 18px;
4545
}
4646

47-
+ .wds-banner-notification .wds-banner-notification {
48-
&__close, &__text {
49-
border-top: 1px solid #ccc;
50-
}
47+
& + & &__close,
48+
& + & &__text {
49+
border-top: 1px solid #ccc;
5150
}
5251
}

0 commit comments

Comments
 (0)