@primer/components 0.0.0-20211030134829 → 0.0.0-20211030144551
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 +5 -3
- package/dist/browser.esm.js +1 -0
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +1 -0
- package/dist/browser.umd.js.map +1 -1
- package/lib/ActionList/Item.js +1 -1
- package/lib/ActionList2/Selection.js +3 -1
- package/lib-esm/ActionList/Item.js +1 -1
- package/lib-esm/ActionList2/Selection.js +3 -1
- package/package.json +1 -1
package/lib/ActionList/Item.js
CHANGED
@@ -151,7 +151,7 @@ const DescriptionContainer = _styledComponents.default.span.withConfig({
|
|
151
151
|
const MultiSelectIcon = _styledComponents.default.svg.withConfig({
|
152
152
|
displayName: "Item__MultiSelectIcon",
|
153
153
|
componentId: "jqpvy8-9"
|
154
|
-
})(["rect{fill:", ";stroke:", ";}path{fill:", ";boxshadow:", ";opacity:", ";}"], ({
|
154
|
+
})(["rect{fill:", ";stroke:", ";shape-rendering:auto;}path{fill:", ";boxshadow:", ";opacity:", ";}"], ({
|
155
155
|
selected
|
156
156
|
}) => selected ? (0, _constants.get)('colors.accent.fg') : (0, _constants.get)('colors.canvas.default'), ({
|
157
157
|
selected
|
@@ -53,7 +53,9 @@ const Selection = ({
|
|
53
53
|
sx: {
|
54
54
|
rect: {
|
55
55
|
fill: selected ? 'accent.fg' : 'canvas.default',
|
56
|
-
stroke: selected ? 'accent.fg' : 'border.default'
|
56
|
+
stroke: selected ? 'accent.fg' : 'border.default',
|
57
|
+
shapeRendering: 'auto' // this is a workaround to override global style in github/github, see primer/react#1666
|
58
|
+
|
57
59
|
},
|
58
60
|
path: {
|
59
61
|
fill: 'fg.onEmphasis',
|
@@ -119,7 +119,7 @@ const DescriptionContainer = styled.span.withConfig({
|
|
119
119
|
const MultiSelectIcon = styled.svg.withConfig({
|
120
120
|
displayName: "Item__MultiSelectIcon",
|
121
121
|
componentId: "jqpvy8-9"
|
122
|
-
})(["rect{fill:", ";stroke:", ";}path{fill:", ";boxshadow:", ";opacity:", ";}"], ({
|
122
|
+
})(["rect{fill:", ";stroke:", ";shape-rendering:auto;}path{fill:", ";boxshadow:", ";opacity:", ";}"], ({
|
123
123
|
selected
|
124
124
|
}) => selected ? get('colors.accent.fg') : get('colors.canvas.default'), ({
|
125
125
|
selected
|
@@ -37,7 +37,9 @@ export const Selection = ({
|
|
37
37
|
sx: {
|
38
38
|
rect: {
|
39
39
|
fill: selected ? 'accent.fg' : 'canvas.default',
|
40
|
-
stroke: selected ? 'accent.fg' : 'border.default'
|
40
|
+
stroke: selected ? 'accent.fg' : 'border.default',
|
41
|
+
shapeRendering: 'auto' // this is a workaround to override global style in github/github, see primer/react#1666
|
42
|
+
|
41
43
|
},
|
42
44
|
path: {
|
43
45
|
fill: 'fg.onEmphasis',
|