openstreetmap / openstreetmap-website

The Rails application that powers OpenStreetMap
https://www.openstreetmap.org/
GNU General Public License v2.0
2.21k stars 918 forks source link

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

Closed AntonKhorev closed 6 days ago

AntonKhorev commented 6 days ago

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

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

image

image

gravitystorm commented 6 days ago

Merged, thanks! I hadn't seen this approach before.