Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#789 alternative text for images format #790

Merged
merged 4 commits into from
Sep 22, 2024

Conversation

romanmyko
Copy link
Collaborator

Formated title and styles css

@@ -9,7 +9,7 @@ const WarnUnsavedDataModal = ({ onCancel, onConfirm }) => {
Збереження введених даних
</p>
<button onClick={onCancel} className={classes['modal-header--close-icon']}>
<img src={`${process.env.REACT_APP_PUBLIC_URL}/svg/cross-btn.svg`} />
<img src={`${process.env.REACT_APP_PUBLIC_URL}/svg/cross-btn.svg`} alt="Cross btn" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider something like "Cancel button" here, becouse "Cross btn" may be confusing for screenreader users.

@@ -8,12 +8,12 @@ const MainPartners = () => {
<div className="partners-section__navi-icons">
<div className="partners-section__navi-icon">
<div className="partners-section__icon">
<img src="/svg/icon-left.svg" alt="" />
<img src="/svg/icon-left.svg" alt="Left" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The content of the alt attribute is literally what will be read by a screen reader, for example, if the user can not see. I would use more descriptive text.

@romanmyko romanmyko merged commit 2c8c343 into develop Sep 22, 2024
4 checks passed
@romanmyko romanmyko deleted the #789-alternative-text-for-images-format branch September 25, 2024 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants