conventional-commits / conventionalcommits.org

The conventional commits specification

Home Page:https://conventionalcommits.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should there be (a11y) commit type? How do you address accessibility UI related changes?

webmatrixxxl opened this issue · comments

Hello!

In the Front-End world recently because of the European Accessibility Act, we have been required (for good) to implement a lot of accessibility across components and pages.

And I started wondering how we should address accessibility in the commit messages.

a11y(checkout): add alt text to card types in checkout

or

accessibility(checkout): add alt text to card types in checkout

or we can stick to

feat(checkout): add alt text to card types in checkout

or maybe

chore(checkout): add alt text to card types in checkout

Personally, I kind of prefer the first one. I'm thinking about the feat and fix in the scope of functionality and accessibility is on top of that.

I have seen this in another project as well: link

What do you think?

On the one hand, accessibility should be part of code quality (be it by adding alt text or correctly implementing design), which would make "chore" correct.

On the other hand it would be valuable to be able to point at commits related to accessibility to document effort in that area. I also belive that as the amount of awareness (and legislation) increase, the amount of commits directly related to accessibility will as well.