@gitlab/ui 104.1.1 → 104.2.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": "@gitlab/ui",
3
- "version": "104.1.1",
3
+ "version": "104.2.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -3,6 +3,19 @@ h1, h2, h3, h4, h5, h6,
3
3
  @apply gl-text-heading;
4
4
  }
5
5
 
6
+ a {
7
+ @apply gl-text-link gl-no-underline hover:gl-text-link hover:gl-underline;
8
+ }
9
+
10
+ // Copied from https://gitlab.com/gitlab-org/gitlab-ui/-/blob/5db1e111501c9e252a388a780e2789dce11dedf4/src/vendor/bootstrap/scss/_reboot.scss#L194.
11
+ // And undo these styles for placeholder links/named anchors (without href).
12
+ // It would be more straightforward to just use a[href] in previous block, but that
13
+ // causes specificity issues in many other styles that are too complex to fix.
14
+ // See https://github.com/twbs/bootstrap/issues/19402
15
+ a:not([href]):not([class]) {
16
+ @apply gl-text-inherit gl-no-underline hover:gl-text-inherit hover:gl-no-underline;
17
+ }
18
+
6
19
  caption {
7
20
  @apply gl-text-subtle;
8
- }
21
+ }
@@ -176,37 +176,6 @@ sub { bottom: -.25em; }
176
176
  sup { top: -.5em; }
177
177
 
178
178
 
179
- //
180
- // Links
181
- //
182
-
183
- a {
184
- color: $link-color;
185
- text-decoration: $link-decoration;
186
- background-color: transparent; // Remove the gray background on active links in IE 10.
187
-
188
- @include hover() {
189
- color: $link-hover-color;
190
- text-decoration: $link-hover-decoration;
191
- }
192
- }
193
-
194
- // And undo these styles for placeholder links/named anchors (without href).
195
- // It would be more straightforward to just use a[href] in previous block, but that
196
- // causes specificity issues in many other styles that are too complex to fix.
197
- // See https://github.com/twbs/bootstrap/issues/19402
198
-
199
- a:not([href]):not([class]) {
200
- color: inherit;
201
- text-decoration: none;
202
-
203
- @include hover() {
204
- color: inherit;
205
- text-decoration: none;
206
- }
207
- }
208
-
209
-
210
179
  //
211
180
  // Code
212
181
  //
@@ -474,7 +474,7 @@ module.exports = {
474
474
  'inner-2-blue-400': 'inset 0 0 0 2px var(--blue-400, #428fdc)',
475
475
  'inner-b-1-gray-100': 'inset 0 -1px 0 0 var(--gray-100, #dcdcde)',
476
476
  'inner-b-1-border-default':
477
- 'inset 0 0 0 1px var(--gl-border-color-default, var(--gl-color-neutral-100, #dcdcde))',
477
+ 'inset 0 -1px 0 0 var(--gl-border-color-default, var(--gl-color-neutral-100, #dcdcde))',
478
478
  'inner-b-2-blue-500': 'inset 0 -2px 0 0 var(--blue-500, #1f75cb)',
479
479
  'inner-b-2-theme-accent':
480
480
  'inset 0 -2px 0 0 var(--gl-theme-accent, var(--theme-indigo-500, #6666c4))',