As recommended in 
https://getbootstrap.com/docs/5.3/components/badge/#background-colors, this 
sets both background and text in one declaration, with text depending on 
background.

See 
https://github.com/openstreetmap/openstreetmap-website/issues/5329#issuecomment-2478795244

![image](https://github.com/user-attachments/assets/7e7cd925-a93c-4d58-a07b-6c947cbf67c6)

You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5331

-- Commit Summary --

  * Set colors for trace visibility badges using .text-bg-*

-- File Changes --

    M app/views/traces/_trace.html.erb (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5331.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5331.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5331
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to