Skip to content

Commit

Permalink
fix(UsaPaginationArrow): fix svg icon href binding
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickcate committed Oct 30, 2022
1 parent 2a07468 commit 0bbfc4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/components/UsaPaginationArrow/UsaPaginationArrow.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ describe('UsaPaginationArrow', () => {
props: {
direction: 'previous',
label: 'Previous',
ariaLabel: 'Previous page',
},
}).as('wrapper')

Expand All @@ -235,6 +236,7 @@ describe('UsaPaginationArrow', () => {
direction: 'previous',
label: 'Previous',
to: '/test-page',
ariaLabel: 'Previous page',
},
global: {
mocks: {
Expand All @@ -252,6 +254,7 @@ describe('UsaPaginationArrow', () => {
direction: 'previous',
label: 'Previous',
to: '/test-page',
ariaLabel: 'Previous page',
},
global: {
mocks: {
Expand Down
4 changes: 2 additions & 2 deletions src/components/UsaPaginationArrow/UsaPaginationArrow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const classes = computed(() => [
role="img"
>
<use
v-bind="{ 'xlink:href': `${svgSpritePath}#navigate_before}` }"
v-bind="{ 'xlink:href': `${svgSpritePath}#navigate_before` }"
></use>
</svg>
</slot>
Expand All @@ -100,7 +100,7 @@ const classes = computed(() => [
role="img"
>
<use
v-bind="{ 'xlink:href': `${svgSpritePath}#navigate_next}` }"
v-bind="{ 'xlink:href': `${svgSpritePath}#navigate_next` }"
></use>
</svg>
</slot>
Expand Down

0 comments on commit 0bbfc4a

Please sign in to comment.