@primer/components 0.0.0-20219214338 → 0.0.0-202192214359

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-20219214338
3
+ ## 0.0.0-202192214359
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: ${Nt("colors.fg.muted")};
48
+ color: ${Nt("colors.primer.fg.disabled")};
49
49
  background-color: ${Nt("colors.btn.bg")};
50
50
  border-color: ${Nt("colors.btn.border")};
51
51
  }
@@ -198,12 +198,17 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
198
198
  box-shadow: none;
199
199
 
200
200
  &:disabled {
201
- color: ${Nt("colors.fg.muted")};
201
+ color: ${Nt("colors.primer.fg.disabled")};
202
202
  }
203
-
204
203
  &:focus {
205
204
  box-shadow: ${Nt("shadows.btn.focusShadow")};
206
205
  }
206
+ &:hover {
207
+ background-color: ${Nt("colors.btn.hoverBg")};
208
+ }
209
+ &:active {
210
+ background-color: ${Nt("colors.btn.selectedBg")};
211
+ }
207
212
 
208
213
  ${Ur};
209
214
  ${rr}
@@ -227,7 +232,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
227
232
  &:disabled {
228
233
  &,
229
234
  &:hover {
230
- color: rgba(${Nt("colors.fg.muted")}, 0.5);
235
+ color: ${Nt("colors.primer.fg.disabled")};
231
236
  cursor: default;
232
237
  }
233
238
  }
@@ -413,7 +418,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
413
418
  background: ${Nt("colors.border.muted")};
414
419
  margin-top: calc(${Nt("space.2")} - 1px);
415
420
  margin-bottom: ${Nt("space.2")};
416
- `;function ka(){return e.createElement($a,null)}ka.displayName="Divider",ka.renderItem=ka;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:Nt("colors.fg.muted"),iconColor:Nt("colors.fg.muted"),annotationColor:Nt("colors.fg.muted"),hoverCursor:"default"};switch(e){case"danger":return{color:Nt("colors.danger.fg"),iconColor:Nt("colors.danger.fg"),annotationColor:Nt("colors.fg.muted"),hoverCursor:"pointer"};default:return{color:Nt("colors.fg.default"),iconColor:Nt("colors.fg.muted"),annotationColor:Nt("colors.fg.muted"),hoverCursor:"pointer"}}},Ea=f.div`
421
+ `;function ka(){return e.createElement($a,null)}ka.displayName="Divider",ka.renderItem=ka;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:Nt("colors.primer.fg.disabled"),iconColor:Nt("colors.primer.fg.disabled"),annotationColor:Nt("colors.primer.fg.disabled"),hoverCursor:"default"};switch(e){case"danger":return{color:Nt("colors.danger.fg"),iconColor:Nt("colors.danger.fg"),annotationColor:Nt("colors.fg.muted"),hoverCursor:"pointer"};default:return{color:Nt("colors.fg.default"),iconColor:Nt("colors.fg.muted"),annotationColor:Nt("colors.fg.muted"),hoverCursor:"pointer"}}},Ea=f.div`
417
422
  display: flex;
418
423
  min-width: 0;
419
424
 
@@ -631,7 +636,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
631
636
 
632
637
  ${e=>e.contrast&&p(["background-color:",";"],Nt("colors.canvas.inset"))}
633
638
 
634
- ${e=>e.disabled&&p(["color:",";background-color:",";border-color:",";"],Nt("colors.fg.muted"),Nt("colors.input.disabledBg"),Nt("colors.border.default"))}
639
+ ${e=>e.disabled&&p(["color:",";background-color:",";border-color:",";"],Nt("colors.primer.fg.disabled"),Nt("colors.input.disabledBg"),Nt("colors.border.default"))}
635
640
 
636
641
  ${e=>e.block&&p(["display:block;width:100%;"])}
637
642
 
@@ -1243,7 +1248,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
1243
1248
 
1244
1249
  &[aria-disabled],
1245
1250
  &[aria-disabled]:hover {
1246
- color: ${Nt("colors.fg.muted")}; // check
1251
+ color: ${Nt("colors.primer.fg.disabled")}; // check
1247
1252
  cursor: default;
1248
1253
  border-color: transparent;
1249
1254
  }