@entur/modal 1.5.13 → 1.6.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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.6.0](https://bitbucket.org/enturas/design-system/compare/@entur/modal@1.5.13...@entur/modal@1.6.0) (2022-05-04)
7
+
8
+ ### Features
9
+
10
+ - **modal:** add custom scrollbar to modal to preserve rounded corners ([22f967f](https://bitbucket.org/enturas/design-system/commits/22f967faed103dda79491dd0ffa7fbad1039dd56))
11
+
6
12
  ## [1.5.13](https://bitbucket.org/enturas/design-system/compare/@entur/modal@1.5.12...@entur/modal@1.5.13) (2022-04-27)
7
13
 
8
14
  **Note:** Version bump only for package @entur/modal
package/dist/styles.css CHANGED
@@ -2,60 +2,6 @@
2
2
  --eds-modal: 1;
3
3
  }/* DO NOT CHANGE!*/
4
4
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
5
- @-webkit-keyframes slideFromRight {
6
- from {
7
- box-shadow: none;
8
- transform: translateX(100%);
9
- }
10
- to {
11
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
12
- transform: 0;
13
- }
14
- }
15
- @keyframes slideFromRight {
16
- from {
17
- box-shadow: none;
18
- transform: translateX(100%);
19
- }
20
- to {
21
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
22
- transform: 0;
23
- }
24
- }
25
- .eds-drawer {
26
- -webkit-animation: slideFromRight forwards ease-out 0.1s;
27
- animation: slideFromRight forwards ease-out 0.1s;
28
- background: #ebebf1;
29
- bottom: 0;
30
- padding: 1.5rem;
31
- position: fixed;
32
- right: 0;
33
- top: 0;
34
- max-width: 100%;
35
- min-width: 20rem;
36
- width: 25vw;
37
- z-index: 40;
38
- overflow-y: auto;
39
- }
40
- .eds-contrast .eds-drawer {
41
- background: #292b6a;
42
- }
43
-
44
- .eds-drawer__close-button {
45
- margin: 0;
46
- position: absolute;
47
- top: 1.5rem;
48
- right: 1.5rem;
49
- }
50
- .eds-drawer__close-button:focus {
51
- outline-offset: 0.125rem;
52
- outline: none;
53
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
54
- }
55
- .eds-contrast .eds-drawer__close-button:focus {
56
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
57
- }/* DO NOT CHANGE!*/
58
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
59
5
  :root {
60
6
  --reach-dialog: 1;
61
7
  }
@@ -117,6 +63,22 @@
117
63
  max-width: 78.75rem;
118
64
  padding: 3rem;
119
65
  }
66
+ .eds-modal__content::-webkit-scrollbar {
67
+ width: 16px;
68
+ }
69
+ .eds-modal__content::-webkit-scrollbar-track {
70
+ margin-top: 0.5rem;
71
+ margin-bottom: 0.5rem;
72
+ }
73
+ .eds-modal__content::-webkit-scrollbar-thumb {
74
+ background-color: lightgrey;
75
+ border: 4px solid transparent;
76
+ border-radius: 8px;
77
+ background-clip: padding-box;
78
+ }
79
+ .eds-modal__content::-webkit-scrollbar-thumb:hover {
80
+ background-color: grey;
81
+ }
120
82
 
121
83
  .eds-modal__close {
122
84
  -webkit-appearance: none;
@@ -175,4 +137,58 @@
175
137
  top: 0%;
176
138
  opacity: 1;
177
139
  }
140
+ }/* DO NOT CHANGE!*/
141
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
142
+ @-webkit-keyframes slideFromRight {
143
+ from {
144
+ box-shadow: none;
145
+ transform: translateX(100%);
146
+ }
147
+ to {
148
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
149
+ transform: 0;
150
+ }
151
+ }
152
+ @keyframes slideFromRight {
153
+ from {
154
+ box-shadow: none;
155
+ transform: translateX(100%);
156
+ }
157
+ to {
158
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
159
+ transform: 0;
160
+ }
161
+ }
162
+ .eds-drawer {
163
+ -webkit-animation: slideFromRight forwards ease-out 0.1s;
164
+ animation: slideFromRight forwards ease-out 0.1s;
165
+ background: #ebebf1;
166
+ bottom: 0;
167
+ padding: 1.5rem;
168
+ position: fixed;
169
+ right: 0;
170
+ top: 0;
171
+ max-width: 100%;
172
+ min-width: 20rem;
173
+ width: 25vw;
174
+ z-index: 40;
175
+ overflow-y: auto;
176
+ }
177
+ .eds-contrast .eds-drawer {
178
+ background: #292b6a;
179
+ }
180
+
181
+ .eds-drawer__close-button {
182
+ margin: 0;
183
+ position: absolute;
184
+ top: 1.5rem;
185
+ right: 1.5rem;
186
+ }
187
+ .eds-drawer__close-button:focus {
188
+ outline-offset: 0.125rem;
189
+ outline: none;
190
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
191
+ }
192
+ .eds-contrast .eds-drawer__close-button:focus {
193
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
178
194
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/modal",
3
- "version": "1.5.13",
3
+ "version": "1.6.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/modal.esm.js",
@@ -29,7 +29,7 @@
29
29
  "dependencies": {
30
30
  "@entur/a11y": "^0.2.43",
31
31
  "@entur/button": "^2.8.1",
32
- "@entur/icons": "^4.1.1",
32
+ "@entur/icons": "^4.1.2",
33
33
  "@entur/layout": "^2.1.5",
34
34
  "@entur/tokens": "^3.3.2",
35
35
  "@entur/typography": "^1.6.12",
@@ -38,5 +38,5 @@
38
38
  "classnames": "^2.3.1",
39
39
  "react-focus-lock": "^2.5.2"
40
40
  },
41
- "gitHead": "7b557782d62c07bdce744f9b084d57177e2202e9"
41
+ "gitHead": "0fba0071ad9dc75cc68b72b846f5bab78be12449"
42
42
  }