carbon-components-vue icon indicating copy to clipboard operation
carbon-components-vue copied to clipboard

The default kind for cv-button got error

Open JasmineFan opened this issue 5 years ago • 3 comments

The css seems work. the button color change to default color, but it always show error in the console [Vue warn]: Invalid prop: custom validator check failed for prop "kind".

JasmineFan avatar Nov 11 '20 15:11 JasmineFan

Please provide the template code so we know what is being used. Without that, there's no telling what's going on.

BryceBarbara avatar Nov 11 '21 17:11 BryceBarbara

@JasmineFan not sure if it is the same problem there for you, but this happened with me due a typo. I was trying to set kind with value "danger-tertiary" (single dash). According to the documentation the value has double dashes, like so: danger--tertiary

After setting the right value, the warning has gone. Hope this helps.

wandss avatar Feb 07 '23 15:02 wandss