Module: Courier::Models::ElementalActionNode::Style
- Extended by:
- Internal::Type::Enum
- Defined in:
- lib/courier/models/elemental_action_node.rb,
sig/courier/models/elemental_action_node.rbs
Overview
How prominent the action should be. button is the default, secondary and
tertiary are the other two button styles, and link renders as inline text
rather than a button.
Each channel draws these as closely as its medium allows. Email fills button,
outlines secondary, and underlines tertiary. The in-app Inbox fills
button, outlines secondary, and draws tertiary as a solid button. Slack
renders all three as Block Kit buttons, with secondary in Slack's primary
style and tertiary in its danger style.
background_color is the fill for button, and the border and label color for
secondary. For tertiary it colors the underline and label in email and the
fill in the Inbox. It does not apply to link. An Inbox theme that sets its own
action colors takes precedence over the template.
Constant Summary collapse
- BUTTON =
:button- SECONDARY =
:secondary- TERTIARY =
:tertiary- LINK =
:link
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Internal::Type::Enum
==, ===, coerce, dump, hash, inspect, to_sorbet_type, values
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/courier/models/elemental_action_node.rb', line 146
|
Instance Method Details
#self?.values ⇒ ::Array[Courier::Models::ElementalActionNode::style]
110 |
# File 'sig/courier/models/elemental_action_node.rbs', line 110
def self?.values: -> ::Array[Courier::Models::ElementalActionNode::style]
|