@ecl/spotlight 5.0.0-RC1 → 5.0.0-RC3

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
@@ -2,16 +2,18 @@
2
2
  "name": "@ecl/spotlight",
3
3
  "author": "European Commission",
4
4
  "license": "EUPL-1.2",
5
- "version": "5.0.0-RC1",
5
+ "version": "5.0.0-RC3",
6
6
  "description": "ECL Spotlight",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
7
10
  "style": "spotlight.scss",
8
11
  "dependencies": {
9
- "@ecl/grid": "5.0.0-RC1",
10
- "@ecl/mixins-typography": "5.0.0-RC1",
11
- "@ecl/picture": "5.0.0-RC1"
12
+ "@ecl/picture": "5.0.0-RC3"
12
13
  },
13
- "publishConfig": {
14
- "access": "public"
14
+ "devDependencies": {
15
+ "@ecl/grid": "5.0.0-RC3",
16
+ "@ecl/mixins-typography": "5.0.0-RC3"
15
17
  },
16
18
  "repository": {
17
19
  "type": "git",
@@ -26,5 +28,5 @@
26
28
  "europa-component-library",
27
29
  "design-system"
28
30
  ],
29
- "gitHead": "37e722adb0ccb8c8102f14f67647fbd4e406ca98"
31
+ "gitHead": "83f271fac12538193d99ae7444c5cbd3ab2c40a5"
30
32
  }
@@ -129,12 +129,10 @@ $anchor-width-l: 232px;
129
129
  padding-block-end: map.get($spotlight, 'anchor', 'padding-block');
130
130
  padding-inline-end: inherit;
131
131
  position: absolute;
132
- right: 0;
132
+ inset-inline-end: 0;
133
133
  width: $anchor-width-l;
134
134
 
135
135
  &:dir(rtl) {
136
- left: 0;
137
- right: auto;
138
136
  transform: scale(-1, 1);
139
137
  }
140
138
  }
@@ -142,12 +140,6 @@ $anchor-width-l: 232px;
142
140
  // Full width
143
141
  .ecl-spotlight--full-width {
144
142
  border-radius: 0;
145
- left: 50%;
146
- margin-inline-start: -50vw;
143
+ margin-inline: calc(50% - 50vw);
147
144
  width: 100vw;
148
-
149
- &:dir(rtl) {
150
- left: auto;
151
- right: 50%;
152
- }
153
145
  }
package/spotlight.scss CHANGED
@@ -138,14 +138,8 @@ $anchor-width-l: 232px;
138
138
  // Full width
139
139
  .ecl-spotlight--full-width {
140
140
  border-radius: 0;
141
- left: 50%;
142
- margin-inline-start: -50vw;
141
+ margin-inline: calc(50% - 50vw);
143
142
  width: 100vw;
144
-
145
- &:dir(rtl) {
146
- left: auto;
147
- right: 50%;
148
- }
149
143
  }
150
144
 
151
145
  @include breakpoints.up('m') {
@@ -179,13 +173,8 @@ $anchor-width-l: 232px;
179
173
  padding-block-end: map.get($spotlight, 'anchor', 'padding-block');
180
174
  padding-inline-end: inherit;
181
175
  position: absolute;
182
- right: 0;
176
+ inset-inline-end: 0;
183
177
  width: $anchor-width-m;
184
-
185
- &:dir(rtl) {
186
- left: 0;
187
- right: auto;
188
- }
189
178
  }
190
179
  }
191
180