Question · Vibe coding with Claude Code course · Module 8: Slack clone

Quiz: Text next to the presence dot

Why does the coloured PresenceDot have hidden text with the sr-only class next to it, e.g. "(be right back)"?

Answer options

  • Because Tailwind 4 will not display a dot without text
  • So that search engines index the sidebar better
  • Because a screen reader cannot read a colour alone, and neither can a person who cannot tell colours apart
  • Because the text replaces the dot on phones

You can check the correct answer by solving this task in the CodeWorlds game.