-
Notifications
You must be signed in to change notification settings - Fork 486
Open
Labels
enhancementIndicates new item to be added to the docs.Indicates new item to be added to the docs.
Description
What is your suggestion?
The Customize Callouts section on the callouts page instructs users on how to create new callouts and states that you can use the css-classes --callout-color and --callout-icon to change the styling of it.
It does not state that you can use general CSS syntax to further customize the callout nor that you can use other CSS variables to change other aspects of colors.
Regular users might not think of using these possibilities and won't check the developer docs to see if there are more CSS variables, so they likely only use the two mentioned ways of customizing callouts and not dive further.
Example Use Cases
Using general CSS syntax to remove the title of the callout:
.callout[data-callout="custom-question-type"] .callout-title {
display: none;
}Using CSS Variables to change the default styling of the border
.callout[data-callout="custom-question-type"]
--callout-color: 175, 175, 175;
--callout-border-opacity: 0.25;
--callout-border-width: 2px;
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementIndicates new item to be added to the docs.Indicates new item to be added to the docs.