@primer/components 0.0.0-202191916821 → 0.0.0-2021919182815

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
@@ -1,6 +1,6 @@
1
1
  # @primer/components
2
2
 
3
- ## 0.0.0-202191916821
3
+ ## 0.0.0-2021919182815
4
4
 
5
5
  ### Major Changes
6
6
 
@@ -12,6 +12,8 @@
12
12
 
13
13
  - Fake entry to force publishing
14
14
 
15
+ * [#1512](https://github.com/primer/react/pull/1512) [`1e5ac406`](https://github.com/primer/react/commit/1e5ac406f8558a20248157a9bfe13ee4709890c8) Thanks [@pksjce](https://github.com/pksjce)! - Change disabled color from muted to custom primer disabled color
16
+
15
17
  ## 30.3.0
16
18
 
17
19
  ### Minor Changes
@@ -45,7 +45,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
45
45
  }
46
46
 
47
47
  &:disabled {
48
- color: ${It("colors.fg.muted")};
48
+ color: ${It("colors.primer.fg.disabled")};
49
49
  background-color: ${It("colors.btn.bg")};
50
50
  border-color: ${It("colors.btn.border")};
51
51
  }
@@ -232,7 +232,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
232
232
  &:disabled {
233
233
  &,
234
234
  &:hover {
235
- color: rgba(${It("colors.fg.muted")}, 0.5);
235
+ color: ${It("colors.primer.fg.disabled")};
236
236
  cursor: default;
237
237
  }
238
238
  }
@@ -418,7 +418,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
418
418
  background: ${It("colors.border.muted")};
419
419
  margin-top: calc(${It("space.2")} - 1px);
420
420
  margin-bottom: ${It("space.2")};
421
- `;function $a(){return e.createElement(ka,null)}$a.displayName="Divider",$a.renderItem=$a;const Ta={default:{hover:{light:"rgba(46, 77, 108, 0.06)",dark:"rgba(201, 206, 212, 0.12)",dark_dimmed:"rgba(201, 206, 212, 0.12)"},focus:{light:"rgba(54, 77, 100, 0.16)",dark:"rgba(201, 206, 212, 0.24)",dark_dimmed:"rgba(201, 206, 212, 0.24)"}},danger:{hover:{light:"rgba(234, 74, 90, 0.08)",dark:"rgba(248, 81, 73, 0.16)",dark_dimmed:"rgba(248, 81, 73, 0.16)"},focus:{light:"rgba(234, 74, 90, 0.14)",dark:"rgba(248, 81, 73, 0.24)",dark_dimmed:"rgba(248, 81, 73, 0.24)"}}},Sa=(e="default",t)=>{if(t)return{color:It("colors.fg.muted"),iconColor:It("colors.fg.muted"),annotationColor:It("colors.fg.muted"),hoverCursor:"default"};switch(e){case"danger":return{color:It("colors.danger.fg"),iconColor:It("colors.danger.fg"),annotationColor:It("colors.fg.muted"),hoverCursor:"pointer"};default:return{color:It("colors.fg.default"),iconColor:It("colors.fg.muted"),annotationColor:It("colors.fg.muted"),hoverCursor:"pointer"}}},Ea=f.div`
421
+ `;function $a(){return e.createElement(ka,null)}$a.displayName="Divider",$a.renderItem=$a;const Ta={default:{hover:{light:"rgba(46, 77, 108, 0.06)",dark:"rgba(201, 206, 212, 0.12)",dark_dimmed:"rgba(201, 206, 212, 0.12)"},focus:{light:"rgba(54, 77, 100, 0.16)",dark:"rgba(201, 206, 212, 0.24)",dark_dimmed:"rgba(201, 206, 212, 0.24)"}},danger:{hover:{light:"rgba(234, 74, 90, 0.08)",dark:"rgba(248, 81, 73, 0.16)",dark_dimmed:"rgba(248, 81, 73, 0.16)"},focus:{light:"rgba(234, 74, 90, 0.14)",dark:"rgba(248, 81, 73, 0.24)",dark_dimmed:"rgba(248, 81, 73, 0.24)"}}},Sa=(e="default",t)=>{if(t)return{color:It("colors.primer.fg.disabled"),iconColor:It("colors.primer.fg.disabled"),annotationColor:It("colors.primer.fg.disabled"),hoverCursor:"default"};switch(e){case"danger":return{color:It("colors.danger.fg"),iconColor:It("colors.danger.fg"),annotationColor:It("colors.fg.muted"),hoverCursor:"pointer"};default:return{color:It("colors.fg.default"),iconColor:It("colors.fg.muted"),annotationColor:It("colors.fg.muted"),hoverCursor:"pointer"}}},Ea=f.div`
422
422
  display: flex;
423
423
  min-width: 0;
424
424
 
@@ -636,7 +636,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
636
636
 
637
637
  ${e=>e.contrast&&p(["background-color:",";"],It("colors.canvas.inset"))}
638
638
 
639
- ${e=>e.disabled&&p(["color:",";background-color:",";border-color:",";"],It("colors.fg.muted"),It("colors.input.disabledBg"),It("colors.border.default"))}
639
+ ${e=>e.disabled&&p(["color:",";background-color:",";border-color:",";"],It("colors.primer.fg.disabled"),It("colors.input.disabledBg"),It("colors.border.default"))}
640
640
 
641
641
  ${e=>e.block&&p(["display:block;width:100%;"])}
642
642
 
@@ -1248,7 +1248,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
1248
1248
 
1249
1249
  &[aria-disabled],
1250
1250
  &[aria-disabled]:hover {
1251
- color: ${It("colors.fg.muted")}; // check
1251
+ color: ${It("colors.primer.fg.disabled")}; // check
1252
1252
  cursor: default;
1253
1253
  border-color: transparent;
1254
1254
  }