Using the color code (hex value) #3984
Replies: 1 comment
-
@mary-josephine-1 we don't have a prop that allows you to set the color of the b-tag component. We do not have a prop called type that changes the color of the b-tag. However, those colors are the colors that come out of the box from Bulma(see image below). You can customize these colors by using CSS or Sass variables. Please see the example in the Buefy Docs You could also use built Bulma Helper classes (e.g has-background-primary) However, these helpers also depend on the Bulma color schema. As a last resort, you can manually use CSS to customize the color of the tag. I hope this helps. Please let me know if you have any other further questions. Helpful Links |
Beta Was this translation helpful? Give feedback.
-
Overview of the problem
OS/Browser: Ubuntu
Description
Do we have an option to change the color of the element using the color code (hex value)?
Steps to reproduce
<b-tag colour="#0D022B"> Name </b-tag>
or
<b-tag type="#0D022B"> Name </b-tag>
Expected behavior
Apply the color of the element using the given color code (hex value).
Actual behavior
Only default options based on
type
can be selected. Cannot enter color code (hex value).Beta Was this translation helpful? Give feedback.
All reactions