fix: add aria-label to IconButton
This commit is contained in:
		
							parent
							
								
									5584d8c601
								
							
						
					
					
						commit
						b9f150f38f
					
				
					 1 changed files with 11 additions and 2 deletions
				
			
		|  | @ -14,7 +14,16 @@ | |||
|   let button: HTMLElement; | ||||
| </script> | ||||
| 
 | ||||
| <Tooltip target={button} placement="top">{tooltip}</Tooltip> | ||||
| <Button {type} {color} {active} {disabled} {href} on:click={click} bind:inner={button}> | ||||
| <Tooltip target={button} aria-hidden placement="top">{tooltip}</Tooltip> | ||||
| <Button | ||||
|   {type} | ||||
|   {color} | ||||
|   {active} | ||||
|   {disabled} | ||||
|   {href} | ||||
|   aria-label={tooltip} | ||||
|   on:click={click} | ||||
|   bind:inner={button} | ||||
| > | ||||
|   <Icon name={icon} /> | ||||
| </Button> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue