@primer/css 0.0.0-2021102434749 → 0.0.0-2021102434953

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.
@@ -1,11 +1,11 @@
1
- $nav-height: $spacer-3 * 3; // 48px
1
+ $nav-height: $spacer-3 * 3 !default; // 48px
2
2
 
3
3
  .UnderlineNav {
4
4
  display: flex;
5
+ min-height: $nav-height;
5
6
  // stylelint-disable-next-line primer/box-shadow
6
7
  box-shadow: inset 0 -1px 0 var(--color-border-muted);
7
8
  justify-content: space-between;
8
- min-height: $nav-height;
9
9
  }
10
10
 
11
11
  .UnderlineNav-body {
@@ -15,6 +15,7 @@ $nav-height: $spacer-3 * 3; // 48px
15
15
  }
16
16
 
17
17
  .UnderlineNav-item {
18
+ position: relative;
18
19
  padding: 0 $spacer-2;
19
20
  font-size: $body-font-size;
20
21
  // stylelint-disable-next-line primer/typography
@@ -25,7 +26,6 @@ $nav-height: $spacer-3 * 3; // 48px
25
26
  background-color: transparent;
26
27
  border: 0;
27
28
  border-radius: $border-radius;
28
- position: relative;
29
29
 
30
30
  // increase touch target area
31
31
  &::before {
@@ -46,16 +46,16 @@ $nav-height: $spacer-3 * 3; // 48px
46
46
  color: var(--color-fg-default);
47
47
 
48
48
  // current/selected underline
49
- &:after {
49
+ &::after {
50
50
  position: absolute;
51
+ right: 50%;
52
+ // 48px total height / 2 (24px) + 1px
53
+ bottom: calc(50% - 25px);
51
54
  width: 100%;
52
55
  height: 2px;
53
56
  content: '';
54
57
  background: var(--color-primer-border-active);
55
58
  border-radius: $border-radius;
56
- right: 50%;
57
- // 48px total height / 2 (24px) + 1px
58
- bottom: calc(50% - 25px);
59
59
  transform: translate(50%, -50%);
60
60
  }
61
61
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/css",
3
- "version": "0.0.0-2021102434749",
3
+ "version": "0.0.0-2021102434953",
4
4
  "description": "The CSS implementation of GitHub's Primer Design System",
5
5
  "homepage": "https://primer.style/css",
6
6
  "author": "GitHub, Inc.",
@@ -35,13 +35,13 @@
35
35
 
36
36
  // if min-width is undefined, return only min-height
37
37
  @mixin minTouchTarget($min-height: 32px, $min-width: '') {
38
- content: '';
39
38
  position: absolute;
39
+ top: 50%;
40
+ left: 50%;
40
41
  width: 100%;
41
42
  height: 100%;
42
43
  min-height: $min-height;
43
- top: 50%;
44
- left: 50%;
44
+ content: '';
45
45
  transform: translateX(-50%) translateY(-50%);
46
46
 
47
47
  @if $min-width != '' {