Support border-radius property on Label components

This would help with displaying tags on objects.

Bonus: access to border-top, border-bottom, left, right.

You can do that by using roles.

  • Create a new Role by clicking assets in the app browser and selecting “Configure roles…” in the drop down. Call it, for example, “myborder”. For now don’t restrict it to a type.
  • In “theme.css” add a CSS class called “anvil-role-myborder”
  • Now, in the properties section for your Label control you will see a role drop down with “myborder” as an option. Selecting this will add the CSS to that control.

Does that help?

2 Likes

7 posts were merged into an existing topic: “Configure Roles” is eluding me

A post was merged into an existing topic: “Configure Roles” is eluding me

A post was merged into an existing topic: “Configure Roles” is eluding me