Skip to content

Commit

Permalink
fix: accessibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Priyanshu44 authored and diehbria committed Dec 5, 2023
1 parent c30d68b commit 4caa534
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/dashboard/src/components/widgets/tile/tile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ const WidgetTile: React.FC<WidgetTileProps> = ({ children, widget, title, remove

return (
<div
role='widget'
aria-description='widget tile'
className='widget-tile'
style={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,16 @@ export const StyledPropertyComponent: FC<StyledPropertyComponentProps> = ({
</Tooltip>
<div onMouseEnter={handleMouseEnter} onMouseLeave={handleMouseLeave}>
<Tooltip content={onMouseOver && isPropertyVisible ? 'hide' : 'unhide'} position='top'>
<Button onClick={onToggleAssetQuery} variant='icon' iconSvg={propertyVisibilityIcon} />
<Button
ariaLabel='hide un-hide property'
onClick={onToggleAssetQuery}
variant='icon'
iconSvg={propertyVisibilityIcon}
/>
</Tooltip>
</div>

<Button onClick={onDeleteAssetQuery} variant='icon' iconName='remove' />
<Button ariaLabel='delete property' onClick={onDeleteAssetQuery} variant='icon' iconName='remove' />
</SpaceBetween>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const ColorPicker: FC<{ color: string; updateColor: (newColor: string) => void }
return (
<div className='color-picker-container' style={{ backgroundColor: color }} {...other}>
<input
aria-label='color picker'
type='color'
value={color}
onChange={(e) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ interface NoChartDataProps {
const NoChartData = ({ icon, emptyStateText }: NoChartDataProps) => {
return (
<div
role='empty widget'
aria-description='empty widget tile'
className='no-chart-data-empty-state'
style={{
Expand Down

0 comments on commit 4caa534

Please sign in to comment.