Advanced Styling Examples
Most of the fields inside code mode are self explained by name, and can be tested right away in the flow builder. Some best practices and odd features are documented here:
Components
- Badge: Is the styling of the component of the options you get inside a multi-select field:
- Logo: Contains the values of the URL's for the company logo that will be used, including the fallback URL:
- TOTP Image: Holds the placeholder image for TOTP button
- Required Attribute: If a component supports using the required boolean, the
_required
attribute will appear in code mode, stating which component will it use to indicate it:
- Notification Card: can alter the style of the notification toast you and other Descopers will get, also how different types of modes will be displayed, such as errors and success messages for actions performed in Descope:
- Alert Error Icon: can add an icon to the Alert component's error mode for example an exclamation point icon to display errors for better accessibility purpose in Descope:
- Mandatory Behavior for Inputs: Descope has a mandatory behavior setting for inputs. When enabled, it adds an asterisk (*) to the placeholder text. You can customize the appearance of the asterisk by editing the required indicator:
- Special Attributes: Some components hold styling states for states of the components. Altering the attributes listed below will change how the component will look in different states:
Was this helpful?