Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a text-background-color property #5381

Closed
bart-1990 opened this issue Sep 29, 2017 · 1 comment
Closed

Add a text-background-color property #5381

bart-1990 opened this issue Sep 29, 2017 · 1 comment
Labels
cross-platform 📺 Requires coordination with Mapbox GL Native (style specification, rendering tests, etc.) feature 🍏

Comments

@bart-1990
Copy link

Add a text-background-color property to set the background-color of a text label. Introducing this property would also require the need for some sort of padding property to define the distance of the space around the text that should be colored.

There are cases where the text-halo properties aren't sufficient to stand the text out from the background. Having the possibility to add a background-color to text would help.

@mourner mourner added cross-platform 📺 Requires coordination with Mapbox GL Native (style specification, rendering tests, etc.) feature 🍏 labels Sep 29, 2017
@jfirebaugh
Copy link
Contributor

Hi @bart-1990, thanks for the suggestion. You can accomplish something similar with the current properties by creating a square background image and then using icon-text-fit. We have various other issues that suggest enhancements in the same vein: #4366, #4436. Closing as covered by those issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cross-platform 📺 Requires coordination with Mapbox GL Native (style specification, rendering tests, etc.) feature 🍏
Projects
None yet
Development

No branches or pull requests

3 participants