The outlined feature you see is implemented for accessibility purposes, which may be a part of the CSS theme used in the codebase. It is not recommended to remove it, as doing so can negatively impact the user experience for those with visibility impairments. To enhance the appearance, consider making adjustments instead of removing it entirely.
To improve the look, you have a <div>
containing an <a>
nested within a <p>
, causing the rectangle outline to overlap the icon. This happens because the p
tag is meant for inline elements (It's best practice to avoid using block elements inside p
tags). In this case, you are using block-level elements like <div>
and <img>
within the paragraph.
Here are some recommendations:
- Remove the
<p>
and <div>
tags, leaving only the <a>
element.
- Add the CSS property
display: inline-block
to the <a>
tag to achieve the desired effect.
<a style="display:inline-block;" title="Home" href="/home">
<img src="/icons/home.svg" width="55" height="55" />
</a>
If you prefer a block layout, simply omit the <p>
tag:
<div>
<a title="Home" href="/home">
<img src="/icons/home.svg" width="55" height="55" />
</a>
</div>