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

feat!: Require an alt prop for every Image #1739

Merged
merged 11 commits into from
Nov 8, 2024

Conversation

RubenSibon
Copy link
Contributor

@RubenSibon RubenSibon commented Nov 1, 2024

Describe the pull request

What

Makes the alt attribute required as a prop in the React component.

Why

Developers should always add descriptive texts to images or consciously set it to an empty string if it's a decorative image.

How

The alt attribute is now required in React components via its prop type.

Checklist

Before submitting your pull request, please ensure you have done the following. Check each checkmark if you have done so or if it wasn't necessary:

  • Add or update documentation
  • Add or update stories
  • Start the PR title with a Conventional Commit prefix, as explained here.

Additional notes

  • Add a link to the specific story in the feature branch deploy.
  • Mention any areas where additional review or feedback is needed.

@RubenSibon RubenSibon self-assigned this Nov 1, 2024
@github-actions github-actions bot temporarily deployed to demo-DES-679-alt-required-on-image November 1, 2024 15:27 Destroyed
@RubenSibon RubenSibon marked this pull request as ready for review November 1, 2024 15:27
packages/css/src/components/image/README.md Outdated Show resolved Hide resolved
packages/react/src/Image/Image.test.tsx Outdated Show resolved Hide resolved
storybook/src/docs/components/AppIcons.tsx Outdated Show resolved Hide resolved
@VincentSmedinga VincentSmedinga changed the title feat!: Alt prop is required for Image feat!: Require an alt prop for every Image Nov 5, 2024
@github-actions github-actions bot temporarily deployed to demo-DES-679-alt-required-on-image November 8, 2024 11:00 Destroyed
VincentSmedinga
VincentSmedinga previously approved these changes Nov 8, 2024
packages/css/src/components/image/README.md Outdated Show resolved Hide resolved
@github-actions github-actions bot temporarily deployed to demo-DES-679-alt-required-on-image November 8, 2024 11:07 Destroyed
packages/css/src/components/image/README.md Outdated Show resolved Hide resolved
packages/css/src/components/image/README.md Outdated Show resolved Hide resolved
packages/css/src/components/image/README.md Outdated Show resolved Hide resolved
VincentSmedinga
VincentSmedinga previously approved these changes Nov 8, 2024
@github-actions github-actions bot temporarily deployed to demo-DES-679-alt-required-on-image November 8, 2024 12:07 Destroyed
@github-actions github-actions bot temporarily deployed to demo-DES-679-alt-required-on-image November 8, 2024 12:09 Destroyed
@github-actions github-actions bot temporarily deployed to demo-DES-679-alt-required-on-image November 8, 2024 12:11 Destroyed
@github-actions github-actions bot temporarily deployed to demo-DES-679-alt-required-on-image November 8, 2024 12:36 Destroyed
@alimpens alimpens merged commit 9145dff into develop Nov 8, 2024
6 checks passed
@alimpens alimpens deleted the feat/DES-679-alt-required-on-image branch November 8, 2024 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants