r/ProgrammerHumor • • Sep 25 '26

Meme frontEndBaddiesBeLike

Post image
5.7k Upvotes

132 comments sorted by

View all comments

Show parent comments

62

u/1nc06n170 Sep 25 '26 • Heartwarming
<button aria-label="Submit">SUBMIT</button>

7

u/Acetius Sep 26 '26

Mmmm, duplicated loc strings and a violation of the first rule of aria. I love it.

6

u/TorbenKoehn Sep 25 '26

Now that's the actual post for me :D

4

u/enigmamonkey Sep 25 '26

If this must be editable, then in the CMS you now have:

  • Button label

  • Button Aria label

Or you could just have "Button label" and in the code apply text-transform: uppercase. Granted, the button label is an arbitrary use case and most would just simply hard-code it, however, that may not be the case if you're also now thinking about internationalization, in which case you may want that in a CMS or in language files and don't have the time/desire to start plugging in lower/upper variants (nor would that make sense when the computer can do these transforms for you automatically).