Skip to content

Commit e59664d

Browse files
committed
💄 Rename arrow icons to chevron
1 parent cf433af commit e59664d

19 files changed

+45
-40
lines changed

src/components/Accordion/Accordion.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import type { AccordionProps } from './accordion'
33
4-
import ArrowDown from '../../icons/arrow-down.svg?raw'
4+
import ChevronDown from '../../icons/chevron-down.svg?raw'
55
import Plus from '../../icons/plus.svg?raw'
66
77
import styles from './accordion.module.scss'
@@ -32,7 +32,7 @@ const classes = [
3232
>
3333
{item.title}
3434
{icon !== 'none' && (
35-
<Fragment set:html={icon === 'plus' ? Plus : ArrowDown} />
35+
<Fragment set:html={icon === 'plus' ? Plus : ChevronDown} />
3636
)}
3737
</button>
3838
<div class={styles.wrapper}>

src/components/Accordion/Accordion.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
import { classNames } from '../../utils/classNames'
55
6-
import ArrowDown from '../../icons/arrow-down.svg?raw'
6+
import ChevronDown from '../../icons/chevron-down.svg?raw'
77
import Plus from '../../icons/plus.svg?raw'
88
99
import styles from './accordion.module.scss'
@@ -45,7 +45,7 @@
4545
>
4646
{item.title}
4747
{#if icon !== 'none'}
48-
{@html icon === 'plus' ? Plus : ArrowDown}
48+
{@html icon === 'plus' ? Plus : ChevronDown}
4949
{/if}
5050
</button>
5151
<div class={styles.wrapper}>

src/components/Accordion/Accordion.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { AccordionProps } from './accordion'
33

44
import { classNames } from '../../utils/classNames'
55

6-
import ArrowDown from '../../icons/arrow-down.svg?raw'
6+
import ChevronDown from '../../icons/chevron-down.svg?raw'
77
import Plus from '../../icons/plus.svg?raw'
88

99
import styles from './accordion.module.scss'
@@ -43,7 +43,7 @@ const Accordion = ({
4343
])}
4444
dangerouslySetInnerHTML={{ __html: icon === 'none'
4545
? item.title
46-
: `${item.title} ${icon === 'plus' ? Plus : ArrowDown}`
46+
: `${item.title} ${icon === 'plus' ? Plus : ChevronDown}`
4747
}}
4848
/>
4949
<div className={styles.wrapper}>

src/components/Breadcrumb/Breadcrumb.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const classes = [
4343
<Fragment>
4444
{index < items.length - 1 && (
4545
<li>
46-
{separator || <Icon type="arrow-right" />}
46+
{separator || <Icon type="chevron-right" />}
4747
</li>
4848
)}
4949
</Fragment>

src/components/Breadcrumb/Breadcrumb.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
import { classNames } from '../../utils/classNames'
77
8-
import ArrowRight from '../../icons/arrow-right.svg?raw'
8+
import ChevronRight from '../../icons/chevron-right.svg?raw'
99
1010
import styles from './breadcrumb.module.scss'
1111
@@ -40,7 +40,7 @@
4040
</li>
4141
{#if index < items.length - 1}
4242
<li>
43-
{@html separator || ArrowRight}
43+
{@html separator || ChevronRight}
4444
</li>
4545
{/if}
4646
{/each}

src/components/Breadcrumb/Breadcrumb.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import ConditionalWrapper from '../ConditionalWrapper/ConditionalWrapper.tsx'
55

66
import { classNames } from '../../utils/classNames'
77

8-
import ArrowRight from '../../icons/arrow-right.svg?raw'
8+
import ChevronRight from '../../icons/chevron-right.svg?raw'
99

1010
import styles from './breadcrumb.module.scss'
1111

@@ -38,7 +38,7 @@ const Breadcrumb = ({
3838
<li>
3939
{separator
4040
? separator
41-
: <span dangerouslySetInnerHTML={{ __html: ArrowRight }} />
41+
: <span dangerouslySetInnerHTML={{ __html: ChevronRight }} />
4242
}
4343
</li>
4444
)}

src/components/Icon/icon.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
export type IconProps = {
22
type: 'alert'
3-
| 'arrow-down'
4-
| 'arrow-left'
5-
| 'arrow-right'
63
| 'check'
4+
| 'chevron-down'
5+
| 'chevron-left'
6+
| 'chevron-right'
7+
| 'chevron-up'
78
| 'circle-check'
89
| 'circle-close'
910
| 'close'

src/components/Icon/map.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import Alert from '../../icons/alert.svg?raw'
2-
import ArrowDown from '../../icons/arrow-down.svg?raw'
3-
import ArrowLeft from '../../icons/arrow-left.svg?raw'
4-
import ArrowRight from '../../icons/arrow-right.svg?raw'
5-
import ArrowUp from '../../icons/arrow-up.svg?raw'
62
import Check from '../../icons/check.svg?raw'
3+
import ChevronDown from '../../icons/chevron-down.svg?raw'
4+
import ChevronLeft from '../../icons/chevron-left.svg?raw'
5+
import ChevronRight from '../../icons/chevron-right.svg?raw'
6+
import ChevronUp from '../../icons/chevron-up.svg?raw'
77
import CircleCheck from '../../icons/circle-check.svg?raw'
88
import CircleClose from '../../icons/circle-close.svg?raw'
99
import Close from '../../icons/close.svg?raw'
@@ -20,11 +20,11 @@ import Warning from '../../icons/warning.svg?raw'
2020

2121
const iconMap = {
2222
'alert': Alert,
23-
'arrow-down': ArrowDown,
24-
'arrow-left': ArrowLeft,
25-
'arrow-right': ArrowRight,
26-
'arrow-up': ArrowUp,
2723
'check': Check,
24+
'chevron-down': ChevronDown,
25+
'chevron-left': ChevronLeft,
26+
'chevron-right': ChevronRight,
27+
'chevron-up': ChevronUp,
2828
'circle-check': CircleCheck,
2929
'circle-close': CircleClose,
3030
'close': Close,

src/components/Pagination/Pagination.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import type { PaginationProps } from './pagination'
33
44
import Button from '../Button/Button.astro'
55
6-
import ArrowLeft from '../../icons/arrow-left.svg?raw'
7-
import ArrowRight from '../../icons/arrow-right.svg?raw'
6+
import ChevronLeft from '../../icons/chevron-left.svg?raw'
7+
import ChevronRight from '../../icons/chevron-right.svg?raw'
88
99
import styles from './pagination.module.scss'
1010
@@ -76,7 +76,7 @@ const generatedPages = pages?.length
7676
theme={theme}
7777
data-page="prev"
7878
>
79-
{(showChevrons || type === 'arrows') && <Fragment set:html={ArrowLeft} />}
79+
{(showChevrons || type === 'arrows') && <Fragment set:html={ChevronLeft} />}
8080
{type !== 'arrows' && previousPageLabel}
8181
</Button>
8282
</li>
@@ -109,7 +109,7 @@ const generatedPages = pages?.length
109109
data-page="next"
110110
>
111111
{type !== 'arrows' && nextPageLabel}
112-
{(showChevrons || type === 'arrows') && <Fragment set:html={ArrowRight} />}
112+
{(showChevrons || type === 'arrows') && <Fragment set:html={ChevronRight} />}
113113
</Button>
114114
</li>
115115
)}

src/components/Pagination/Pagination.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
66
import { classNames } from '../../utils/classNames'
77
8-
import ArrowLeft from '../../icons/arrow-left.svg?raw'
9-
import ArrowRight from '../../icons/arrow-right.svg?raw'
8+
import ChevronLeft from '../../icons/chevron-left.svg?raw'
9+
import ChevronRight from '../../icons/chevron-right.svg?raw'
1010
1111
import styles from './pagination.module.scss'
1212
@@ -98,7 +98,7 @@
9898
}
9999
>
100100
{#if showChevrons || type === 'arrows'}
101-
{@html ArrowLeft}
101+
{@html ChevronLeft}
102102
{/if}
103103
{#if type !== 'arrows'}
104104
{previousPageLabel}
@@ -143,7 +143,7 @@
143143
{nextPageLabel}
144144
{/if}
145145
{#if showChevrons || type === 'arrows'}
146-
{@html ArrowRight}
146+
{@html ChevronRight}
147147
{/if}
148148
</Button>
149149
</li>

src/components/Pagination/Pagination.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import Button from '../Button/Button.tsx'
55

66
import { classNames } from '../../utils/classNames'
77

8-
import ArrowLeft from '../../icons/arrow-left.svg?raw'
9-
import ArrowRight from '../../icons/arrow-right.svg?raw'
8+
import ChevronLeft from '../../icons/chevron-left.svg?raw'
9+
import ChevronRight from '../../icons/chevron-right.svg?raw'
1010

1111
import styles from './pagination.module.scss'
1212

@@ -111,7 +111,7 @@ const Pagination = ({
111111
}
112112
>
113113
{(showChevrons || type === 'arrows') && (
114-
<span dangerouslySetInnerHTML={{ __html: ArrowLeft }} />
114+
<span dangerouslySetInnerHTML={{ __html: ChevronLeft }} />
115115
)}
116116
{type !== 'arrows' && previousPageLabel}
117117
</Button>
@@ -152,7 +152,7 @@ const Pagination = ({
152152
>
153153
{type !== 'arrows' && nextPageLabel}
154154
{(showChevrons || type === 'arrows') && (
155-
<span dangerouslySetInnerHTML={{ __html: ArrowRight }} />
155+
<span dangerouslySetInnerHTML={{ __html: ChevronRight }} />
156156
)}
157157
</Button>
158158
</li>

src/components/Pagination/pagination.module.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
svg {
3636
@include size(10px);
3737
pointer-events: none;
38+
39+
path {
40+
stroke-width: 3px;
41+
}
3842
}
3943

4044
[data-active] {

src/components/Select/Select.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Popover from '../Popover/Popover.astro'
88
99
import { classNames } from '../../utils/classNames'
1010
11-
import ArrowDown from '../../icons/arrow-down.svg?raw'
11+
import ChevronDown from '../../icons/chevron-down.svg?raw'
1212
1313
import styles from './select.module.scss'
1414
@@ -56,7 +56,7 @@ const inputRestProps = Object.fromEntries(
5656
labelClassName={classes}
5757
{...inputRestProps}
5858
>
59-
<Fragment set:html={ArrowDown} />
59+
<Fragment set:html={ChevronDown} />
6060
</Input>
6161
{position === 'modal'
6262
? (

src/components/Select/Select.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import { modal } from '../../utils/modal'
1414
import { closePopover, popover, type PopoverPosition } from '../../utils/popover'
1515
16-
import ArrowDown from '../../icons/arrow-down.svg?raw'
16+
import ChevronDown from '../../icons/chevron-down.svg?raw'
1717
1818
import styles from './select.module.scss'
1919
@@ -156,7 +156,7 @@
156156
labelClassName={classes}
157157
{...inputRestProps}
158158
>
159-
{@html ArrowDown}
159+
{@html ChevronDown}
160160
</Input>
161161
{#if position === 'modal'}
162162
<Modal

src/components/Select/Select.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { on } from '../../utils/DOMUtils'
1212
import { modal } from '../../utils/modal'
1313
import { closePopover, popover, type PopoverPosition } from '../../utils/popover'
1414

15-
import ArrowDown from '../../icons/arrow-down.svg?raw'
15+
import ChevronDown from '../../icons/chevron-down.svg?raw'
1616

1717
import styles from './select.module.scss'
1818

@@ -155,7 +155,7 @@ const Select = ({
155155
{...inputRestProps}
156156
>
157157
<span
158-
dangerouslySetInnerHTML={{ __html: ArrowDown }}
158+
dangerouslySetInnerHTML={{ __html: ChevronDown }}
159159
style={{
160160
right: 0,
161161
pointerEvents: 'none'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)