DEV Community

Cover image for The <sarcasm> 🙄 component - now Brits can finally be understood on the web!
GrahamTheDev
GrahamTheDev

Posted on

The <sarcasm> 🙄 component - now Brits can finally be understood on the web!

I don't think 'Muricans understand our struggle as Brits.

We make a killer sarcastic comment like "I love listicles, they are super useful" and they think we are being serious!

Now most of my European friends will recognise the sarcasm, but as a Brit I do find that my cousins from across the pond struggle with identifying sarcasm, especially in written text.

And the scariest part of that is that they might actually think I like listicles 🤢.

They should make me Prime Minister

Do not fear though, dear reader, I have solved the problem. I will be forever heralded as the saviour of USA-UK relations!

My creation is that ground breaking that I truly believe I would make a better PM than Mr Starmer (although that isn't a high bar to be fair! 😱🤣)!

At the very least I think I am in the running for a Nobel Peace Prize?

Prepare yourself to marvel at the majesty and beauty of the <sarcasm> component!

The sarcasm component

Did you cry?

I know I did when I saw it take it's first breath. The beauty of helping 70 million Brits finally express themselves was overwhelming.

Air quotes in HTML should have been a thing since day 1 of the internet!

It is bad enough I have to write color every day and spell things incorrectly, but I could have easily forgiven that if my needs and those of my fellow Countrymen had been considered elsewhere.

I have finally solved that injustice!

Go forth and multiply

To all my fellow Brits (and other sarcastic so and so's!) - go forth and spread the good word.

Use the component everywhere you can and rejoice in your ability to fully express yourself.

And you can rest assured you can use it without fear as:

  • It hides the SVGs from screen readers and adds a visually hidden "(sarcasm)" to the end so it is pretty screen reader friendly (open to suggestions on how to improve it though!).
  • If you remove the rotate(1.5deg) it would be even more accessible FYI.
  • It will adapt to font sizes and colours so will look ugly great in anything you do.
  • Comes with my standard 3 year warranty*

* this warranty, as with most warranties, is completely useless as we provide no guarantees either implied or explicit and is included purely for marketing purposes

That's a wrap.

A silly article (as to be expected from me) just to get back into the swing of writing and to say hi.

I hope 2025 is treating you well so far and I look forward to writing some more "useful and well thought out" articles and sharing with you all soon. (see why we need the sarcasm component?)

Top comments (23)

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

in practice, the component should probably detect if the language is set to en-UK or en-US and show or hide the visual aids accordingly :)

Collapse
 
grahamthedev profile image
GrahamTheDev

OMG why did I not think of that, genius idea! 🤣💗

Collapse
 
ben profile image
Ben Halpern

This is good

Collapse
 
valeriavg profile image
Valeria

I love this article! It’s very useful 😉

Collapse
 
grahamthedev profile image
GrahamTheDev

Haha, as with all my articles right? RIGHT?? 🤣💗

Collapse
 
valeriavg profile image
Valeria

Most certainly👌

Thread Thread
 
grahamthedev profile image
GrahamTheDev

And look at that, we already found a use case for <sarcasm>! hahahah

Thread Thread
 
valeriavg profile image
Valeria • Edited

Jokes aside, I had fun reading it and I liked the subtle push for a11y. Well done!
</Not sarcasm>

Thread Thread
 
grahamthedev profile image
GrahamTheDev

I like to do things subtla11y and slowly win people over 😁💗

Collapse
 
dariomannu profile image
Dario Mannu

Actually, autistic people are the ones who would love this the most. Brilliant idea!

<sarcasm> for web standards, not just a playful web component

May also think of an aria-actual-meaning attribute:

<p>
  Oh, that's just
  <sarcasm aria-actual-meaning="ridiculous">the best idea ever</sarcasm>.
</p>
Enter fullscreen mode Exit fullscreen mode

Shame that whoever's being sarcastic would unlikely be using these tags... 🤞😝😂

Collapse
 
grahamthedev profile image
GrahamTheDev • Edited

I love the levelling up of the idea here! Would be nice to see if I can find a standards compliant way of doing this (perhaps, dare i say it, with title attribute or a custom implementation of the behaviour!) 💗

Collapse
 
webjose profile image
José Pablo Ramírez Vargas

I like it for sure. The next step is to make it wildly available in Mardkown-to-HTML libraries, and of course, decide on the Markdown syntax.

Collapse
 
grahamthedev profile image
GrahamTheDev

~s sarcastic comment inside s~??
Don’t worry we will expand into all formats! 🤣💗

Collapse
 
savvy-itch profile image
Michael Savych

So nice to find some quality content for once here (not sarcasm)

Collapse
 
grahamthedev profile image
GrahamTheDev

Haha, I am now thinking we need a <genuinely> component to counter the <sarcasm> one! haha

Collapse
 
fyodorio profile image
Fyodor

But then you won’t be able to prevent sarcastic use of the <genuinely> component 🤔

Thread Thread
 
grahamthedev profile image
GrahamTheDev

It then becomes a game of triple bluff? 🤷🤣💗

Collapse
 
zethix profile image
Andrey Rusev

It is bad enough I have to write color every day and spell things incorrectly

I'm always on the lookout for opportunities to sneak a cancelled label in US GUIs and apps. :)

Collapse
 
grahamthedev profile image
GrahamTheDev

Haha! Little wins 🤣💗

Collapse
 
marlonlom profile image
Marlon López • Edited

What about <meme> html tag/component?

Collapse
 
grahamthedev profile image
GrahamTheDev

I am not following? It is a web component? 💗

Collapse
 
rer profile image
Joonas Väänänen

haha ::D Thanks guys, good humour makes a day :D <3 thx

Collapse
 
grahamthedev profile image
GrahamTheDev

A belated happy new year everyone!

I hope you are having a great one so far. 💗

Some comments may only be visible to logged-in visitors. Sign in to view all comments.