File tree Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @primer/components ' : patch
3+ ---
4+
5+ ActionList: Fix multiple selection svg by overriding global shape-rendering for github.com
Original file line number Diff line number Diff line change @@ -317,6 +317,7 @@ const MultiSelectIcon = styled.svg<{selected?: boolean}>`
317317 rect {
318318 fill: ${ ( { selected} ) => ( selected ? get ( 'colors.accent.fg' ) : get ( 'colors.canvas.default' ) ) } ;
319319 stroke: ${ ( { selected} ) => ( selected ? get ( 'colors.accent.fg' ) : get ( 'colors.border.default' ) ) } ;
320+ shape-rendering: auto; // this is a workaround to override global style in github/github, see primer/react#1666
320321 }
321322 path {
322323 fill: ${ get ( 'colors.fg.onEmphasis' ) } ;
Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ export const Selection: React.FC<SelectionProps> = ({selected}) => {
3838 sx = { {
3939 rect : {
4040 fill : selected ? 'accent.fg' : 'canvas.default' ,
41- stroke : selected ? 'accent.fg' : 'border.default'
41+ stroke : selected ? 'accent.fg' : 'border.default' ,
42+ shapeRendering : 'auto' // this is a workaround to override global style in github/github, see primer/react#1666
4243 } ,
4344 path : {
4445 fill : 'fg.onEmphasis' ,
Original file line number Diff line number Diff line change @@ -513,6 +513,7 @@ Array [
513513.c6 rect {
514514 fill : #ffffff ;
515515 stroke : #d0d7de ;
516+ shape - rendering : auto ;
516517}
517518
518519.c6 path {
@@ -1386,6 +1387,7 @@ Array [
13861387.c6 rect {
13871388 fill : #ffffff ;
13881389 stroke : #d0d7de ;
1390+ shape - rendering : auto ;
13891391}
13901392
13911393.c6 path {
@@ -2206,6 +2208,7 @@ Array [
22062208.c10 rect {
22072209 fill : #ffffff ;
22082210 stroke : #d0d7de ;
2211+ shape - rendering : auto ;
22092212}
22102213
22112214.c10 path {
@@ -2216,6 +2219,7 @@ Array [
22162219.c6 rect {
22172220 fill : #0969da ;
22182221 stroke : #0969da ;
2222+ shape - rendering : auto ;
22192223}
22202224
22212225.c6 path {
You can’t perform that action at this time.
0 commit comments