Skip to content

Commit e295c8d

Browse files
authored
feat: add fork icon (#698)
1 parent 9012c17 commit e295c8d

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

src/components/ListBoxItem.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@ const ListBoxItemInner = styled.div<Partial<ListBoxItemProps>>(
7070
},
7171
...(focused ? { '&': { ...theme.partials.focus.outline } } : {}),
7272
'.left-content': {
73+
display: 'flex',
7374
marginRight: theme.spacing.small,
7475
},
7576
'.right-content, .selected-indicator': {
77+
display: 'flex',
7678
marginLeft: theme.spacing.xsmall,
7779
color: theme.colors['action-primary'],
7880
},
@@ -182,9 +184,11 @@ const ListBoxFooterInner = styled.button<{ $focused?: boolean }>(
182184
flexGrow: 1,
183185
},
184186
'.leftContent': {
187+
display: 'flex',
185188
marginRight: theme.spacing.small,
186189
},
187190
'.rightContent': {
191+
display: 'flex',
188192
marginLeft: theme.spacing.small,
189193
},
190194
'&:focus, &:focus-visible': {
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import createIcon from './createIcon'
2+
3+
export default createIcon(({ size, color }) => (
4+
<svg
5+
width={size}
6+
height={size}
7+
viewBox="0 0 16 16"
8+
fill="none"
9+
xmlns="http://www.w3.org/2000/svg"
10+
>
11+
<g id="git-fork">
12+
<path
13+
id="Vector"
14+
d="M4.86523 15C5.26306 15 5.64459 14.842 5.92589 14.5607C6.2072 14.2794 6.36523 13.8978 6.36523 13.5C6.36523 13.1022 6.2072 12.7206 5.92589 12.4393C5.64459 12.158 5.26306 12 4.86523 12C4.46741 12 4.08588 12.158 3.80457 12.4393C3.52327 12.7206 3.36523 13.1022 3.36523 13.5C3.36523 13.8978 3.52327 14.2794 3.80457 14.5607C4.08588 14.842 4.46741 15 4.86523 15ZM5.39336 11.0563C6.52148 11.2969 7.36523 12.3 7.36523 13.5C7.36523 14.8813 6.24648 16 4.86523 16C3.48398 16 2.36523 14.8813 2.36523 13.5C2.36523 12.2906 3.22461 11.2812 4.36523 11.05V4.95C3.22461 4.71875 2.36523 3.70938 2.36523 2.5C2.36523 1.11875 3.48398 0 4.86523 0C6.24648 0 7.36523 1.11875 7.36523 2.5C7.36523 3.70938 6.50586 4.71875 5.36523 4.95V8.67188C6.19023 7.65312 7.45273 7 8.86523 7H9.41523C9.64648 5.85938 10.6559 5 11.8652 5C13.2465 5 14.3652 6.11875 14.3652 7.5C14.3652 8.88125 13.2465 10 11.8652 10C10.6559 10 9.64648 9.14062 9.41523 8H8.86523C7.08398 8 5.61211 9.33125 5.39336 11.0563ZM13.3652 7.5C13.3652 7.10218 13.2072 6.72064 12.9259 6.43934C12.6446 6.15804 12.2631 6 11.8652 6C11.4674 6 11.0859 6.15804 10.8046 6.43934C10.5233 6.72064 10.3652 7.10218 10.3652 7.5C10.3652 7.89782 10.5233 8.27936 10.8046 8.56066C11.0859 8.84196 11.4674 9 11.8652 9C12.2631 9 12.6446 8.84196 12.9259 8.56066C13.2072 8.27936 13.3652 7.89782 13.3652 7.5ZM6.36523 2.5C6.36523 2.10218 6.2072 1.72064 5.92589 1.43934C5.64459 1.15804 5.26306 1 4.86523 1C4.46741 1 4.08588 1.15804 3.80457 1.43934C3.52327 1.72064 3.36523 2.10218 3.36523 2.5C3.36523 2.89782 3.52327 3.27936 3.80457 3.56066C4.08588 3.84196 4.46741 4 4.86523 4C5.26306 4 5.64459 3.84196 5.92589 3.56066C6.2072 3.27936 6.36523 2.89782 6.36523 2.5Z"
15+
fill={color}
16+
/>
17+
</g>
18+
</svg>
19+
))

src/icons.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export { default as FluxIcon } from './components/icons/FluxIcon'
9898
export { default as FolderIcon } from './components/icons/FolderIcon'
9999
export { default as GearTrainIcon } from './components/icons/GearTrainIcon'
100100
export { default as GitCommitIcon } from './components/icons/GitCommitIcon'
101+
export { default as GitForkIcon } from './components/icons/GitForkIcon'
101102
export { default as GitHubIcon } from './components/icons/GitHubIcon'
102103
export { default as GitHubLogoIcon } from './components/icons/GitHubLogoIcon'
103104
export { default as GitLabLogoIcon } from './components/icons/GitLabLogoIcon'

0 commit comments

Comments
 (0)