@ons/design-system 73.0.0 → 73.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ {% from "components/announcement-banner/_macro.njk" import onsAnnouncementBanner %}
2
+
3
+ {{
4
+ onsAnnouncementBanner({
5
+ "variants": ['red', 'wide'],
6
+ "title": 'National emergency',
7
+ "description": 'This is a level 1 incident',
8
+ "link": {
9
+ "text": 'More information',
10
+ "url": '#0'
11
+ }
12
+ })
13
+ }}
@@ -2,7 +2,7 @@
2
2
 
3
3
  {{
4
4
  onsAnnouncementBanner({
5
- "variants": ['red', 'wide'],
5
+ "variants": 'red',
6
6
  "title": 'National emergency',
7
7
  "description": 'This is a level 1 incident',
8
8
  "link": {
@@ -18,14 +18,6 @@ $button-shadow-size: 3px;
18
18
  vertical-align: top;
19
19
  white-space: nowrap;
20
20
 
21
- // Transparent border for IE11 High Contrast mode support due to 'border: 0' on buttons
22
- &::after {
23
- border: ems($button-shadow-size) solid transparent;
24
- inset: 0 0 - (ems($button-shadow-size)) 0; // Makes sure button shadow is selectable
25
- content: '';
26
- position: absolute;
27
- }
28
-
29
21
  &--search {
30
22
  .ons-icon {
31
23
  margin: 0.125rem 0.5rem 0.125rem 0;
@@ -88,7 +80,7 @@ $button-shadow-size: 3px;
88
80
  color: var(--ons-color-text-inverse);
89
81
  display: flex;
90
82
  align-items: center;
91
- padding: 0.75rem 1rem;
83
+ padding: 0.875rem 1rem;
92
84
  // Required for Google Tag Manager
93
85
  pointer-events: none;
94
86
  position: relative;