Skip to content

Commit

Permalink
fix: feature icons a11y (#974)
Browse files Browse the repository at this point in the history
* fix: feature icons a11y

* fix: no icon wrap with no icon
  • Loading branch information
PahaN47 authored Aug 8, 2024
1 parent d702a42 commit 30b8cab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/blocks/ExtendedFeatures/ExtendedFeatures.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ $block: '.#{$ns}ExtendedFeaturesBlock';
@include icon();

display: block;
margin-bottom: $indentXXS;

&-wrap {
margin-bottom: $indentXXS;
}
}

@media (max-width: map-get($gridBreakpoints, 'sm')) {
Expand Down
6 changes: 5 additions & 1 deletion src/blocks/ExtendedFeatures/ExtendedFeatures.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ export const ExtendedFeaturesBlock = ({

return (
<Col className={b('item')} key={text || itemTitle} sizes={colSizes}>
{iconData && <Image {...iconData} className={b('icon')} />}
{iconData && (
<div className={b('icon-wrap')} aria-hidden>
<Image {...iconData} className={b('icon')} />
</div>
)}
<div className={b('container')}>
{itemTitle &&
React.createElement(
Expand Down

0 comments on commit 30b8cab

Please sign in to comment.