@nice-digital/nds-horizontal-nav 1.1.19-alpha.0 → 2.0.0-alpha.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-digital/nds-horizontal-nav",
3
- "version": "1.1.19-alpha.0",
3
+ "version": "2.0.0-alpha.0",
4
4
  "description": "Horizontal navigation component for the NICE Design System",
5
5
  "keywords": [
6
6
  "navigation"
@@ -34,7 +34,7 @@
34
34
  "url": "https://github.com/nice-digital/nice-design-system/issues"
35
35
  },
36
36
  "dependencies": {
37
- "@nice-digital/nds-core": "^1.3.5-alpha.0",
37
+ "@nice-digital/nds-core": "^2.0.0-alpha.0",
38
38
  "classnames": "^2.2.6",
39
39
  "prop-types": "^15.7.2"
40
40
  },
@@ -45,5 +45,5 @@
45
45
  "devDependencies": {
46
46
  "@babel/cli": "^7.5.0"
47
47
  },
48
- "gitHead": "0ddae81edebd757a52ca6a2838610049a83acebd"
48
+ "gitHead": "66fbcb1c0c01b0afc6b51b0f3fe4719be92996b0"
49
49
  }
@@ -16,27 +16,31 @@
16
16
  &__list {
17
17
  align-items: stretch;
18
18
  display: flex;
19
- flex-direction: column;
20
- flex-wrap: wrap;
19
+ flex-flow: column wrap;
21
20
  list-style: none;
22
21
  margin: 0;
23
22
  max-width: 100%;
23
+
24
24
  @include media-queries.mq($from: sm) {
25
- border-bottom: 3px solid colours.$nice-black;
25
+ border-bottom: 3px solid colours.$horizontal-nav-list-border;
26
26
  flex-direction: row;
27
27
  }
28
28
  }
29
+
29
30
  &__item {
30
31
  margin: 0;
32
+
31
33
  &:first-of-type {
32
34
  margin-left: 0;
33
35
  }
36
+
34
37
  @include media-queries.mq($from: sm) {
35
38
  align-items: stretch;
36
39
  display: flex;
37
40
  margin: 0 utils.rem(spacing.$small);
38
41
  text-align: center;
39
42
  }
43
+
40
44
  @include media-queries.mq($until: sm) {
41
45
  border-top: 1px solid colours.$border;
42
46
  &:first-of-type {
@@ -44,37 +48,44 @@
44
48
  }
45
49
  }
46
50
  }
51
+
47
52
  &__link {
48
53
  display: block;
49
54
  line-height: 1em;
50
55
  margin-bottom: -1px; // to ensure there's no rendered gap between the bottom border and the border across the page
51
56
  padding: utils.rem(spacing.$medium);
52
57
  text-decoration: none;
58
+
53
59
  &:hover {
54
60
  text-decoration: underline;
55
61
  }
62
+
56
63
  &[aria-current='true'] {
57
- background-color: colours.$nice-grey-3;
58
- border-bottom: 4px solid colours.$nice-black;
59
- color: colours.$nice-black;
64
+ background-color: colours.$horizontal-nav-current-link-background;
65
+ border-bottom: 4px solid colours.$horizontal-nav-current-link-border;
66
+ color: colours.$horizontal-nav-current-link;
60
67
  font-weight: bold;
61
68
  @include media-queries.mq($from: md) {
62
69
  background-color: unset;
63
70
  }
64
71
  }
72
+
65
73
  @include media-queries.mq($until: sm) {
66
74
  &:active {
67
- background-color: colours.$nice-teal;
68
- color: colours.$nice-white;
75
+ background-color: colours.$horizontal-nav-active-link-mobile-background;
76
+ color: colours.$horizontal-nav-active-link-mobile;
69
77
  }
70
78
  }
79
+
71
80
  @include media-queries.mq($from: sm) {
72
81
  padding: utils.rem(spacing.$medium) utils.rem(spacing.$small);
73
82
  }
83
+
74
84
  @include media-queries.mq($from: md) {
75
85
  padding: utils.rem(spacing.$medium);
76
86
  }
77
87
  }
88
+
78
89
  @include media-queries.mq($until: sm) {
79
90
  border: 1px solid colours.$border;
80
91
  }