File tree Expand file tree Collapse file tree 11 files changed +14
-3
lines changed Expand file tree Collapse file tree 11 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ const style = top
39
39
theme = " flat"
40
40
className = { styles .close }
41
41
data-id = " w-banner-close"
42
+ aria-label = " close"
42
43
>
43
44
<Fragment set :html = { closeIcon } />
44
45
</Button >
Original file line number Diff line number Diff line change 42
42
theme =" flat"
43
43
className ={styles .close }
44
44
onClick ={() => visible = false }
45
+ aria-label =" close"
45
46
>
46
47
{@html closeIcon }
47
48
</Button >
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ const Banner = ({
45
45
className = { styles . close }
46
46
dangerouslySetInnerHTML = { { __html : closeIcon } }
47
47
onClick = { ( ) => setVisible ( false ) }
48
+ aria-label = "close"
48
49
/>
49
50
) }
50
51
</ div >
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ const classes = classNames([
38
38
<button
39
39
class ={ styles [' copy-icon' ]}
40
40
data-id =" w-copy"
41
+ aria-label =" copy"
41
42
>
42
43
{ copyIcon ?.startsWith (' <svg' )
43
44
? <Fragment set :html = { copyIcon } />
Original file line number Diff line number Diff line change 54
54
<span data-id ="text" >{@render children ?.()}</span >
55
55
<div class ={styles .icons }>
56
56
<button
57
- class ={styles [' copy-icon' ]}
58
57
bind:this ={copyButton }
58
+ class ={styles [' copy-icon' ]}
59
59
onclick ={copyText }
60
+ aria-label =" copy"
60
61
>
61
62
{@html copyIcon || copy }
62
63
</button >
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ const Copy = ({
58
58
className = { styles [ 'copy-icon' ] }
59
59
ref = { copyButton }
60
60
onClick = { copyText }
61
+ aria-label = "copy"
61
62
dangerouslySetInnerHTML = { { __html : copyIcon || copy } }
62
63
/>
63
64
< span
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ const classes = [
58
58
theme = " flat"
59
59
className = { styles .close }
60
60
data-id = " close"
61
+ aria-label = " close"
61
62
>
62
63
<Fragment set :html = { closeIcon } />
63
64
</Button >
Original file line number Diff line number Diff line change 59
59
theme =" flat"
60
60
className ={styles .close }
61
61
data-id =" close"
62
+ aria-label =" close"
62
63
>
63
64
{@html closeIcon }
64
65
</Button >
Original file line number Diff line number Diff line change @@ -58,8 +58,9 @@ const Modal = ({
58
58
< Button
59
59
theme = "flat"
60
60
className = { styles . close }
61
- data-id = "close"
62
61
dangerouslySetInnerHTML = { { __html : closeIcon } }
62
+ data-id = "close"
63
+ aria-label = "close"
63
64
/>
64
65
) }
65
66
{ title && (
Original file line number Diff line number Diff line change @@ -58,11 +58,12 @@ const generatedPages = pages?.length
58
58
>
59
59
{ type === ' dots' ? (
60
60
<Fragment >
61
- { generatedPages ?.map (page => (
61
+ { generatedPages ?.map (( page , index ) => (
62
62
<li >
63
63
<button
64
64
data-active = { page .active ? ' true' : undefined }
65
65
data-page = { page .label }
66
+ aria-label = { ` page ${index + 1 } ` }
66
67
/>
67
68
</li >
68
69
))}
You can’t perform that action at this time.
0 commit comments