File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ export default {
1111 defaultValue : "icons/collection/Menu.svg" ,
1212 control : "text" ,
1313 } ,
14+ altText : {
15+ defaultValue : "Denne knap sorterer listen efter dato" ,
16+ control : "text" ,
17+ } ,
1418 } ,
1519 parameters : {
1620 design : {
Original file line number Diff line number Diff line change 11interface IconButtonProps {
22 src : string ;
3+ altText : string ;
34}
4- const IconButton : React . FC < IconButtonProps > = ( { src } ) => {
5+ const IconButton : React . FC < IconButtonProps > = ( { src, altText } ) => {
56 return (
67 < button className = "dpl-icon-button" type = "button" >
7- < img src = { src } alt = "" />
8+ < img src = { src } alt = { altText } />
89 </ button >
910 ) ;
1011} ;
Original file line number Diff line number Diff line change @@ -21,10 +21,16 @@ export const ListButton: React.FC<ListButtonProps> = ({
2121 </ div >
2222 < div className = "dpl-list-buttons__buttons" >
2323 < div className = "dpl-list-buttons__buttons__button" >
24- < IconButton src = "icons/collection/Menu.svg" />
24+ < IconButton
25+ altText = "Denne knap sorterer listen efter afleveringsdato"
26+ src = "icons/collection/Menu.svg"
27+ />
2528 </ div >
2629 < div className = "dpl-list-buttons__buttons__button" >
27- < IconButton src = "icons/collection/Various.svg" />
30+ < IconButton
31+ altText = "Denne knap sorterer listen i stakke"
32+ src = "icons/collection/Various.svg"
33+ />
2834 </ div >
2935 < div className = "dpl-list-buttons__buttons__button" >
3036 < Button
You can’t perform that action at this time.
0 commit comments