Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions elements/rh-cta/rh-cta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,24 @@ function isSupportedContent(el: Element | null): el is HTMLAnchorElement | HTMLB
*
* @alias call-to-action
*
* @cssprop --rh-icon-size
* Size of the icon displayed within the CTA. Controls both width and height of icon elements.
*
* @cssprop --rh-cta-focus-container-outline-color
* Color of the focus outline for the CTA container. Used to indicate keyboard focus state
* for accessibility.
*
* @cssprop --rh-cta-focus-outline-color
* Color of the focus outline for the CTA link/button element. Should provide adequate
* contrast against background for visibility.
*
* @cssprop --rh-cta-font-size-priority
* Font size for priority/primary CTA variants. Used to emphasize important calls to action
* with larger text.
*
* @cssprop --rh-cta-active-background-color
* Background color when the CTA is in active/pressed state. Provides visual feedback
* during user interaction.
*/
@customElement('rh-cta')
@themable
Expand Down