Who can use this feature?
- Members of each user group.
- Available for Accelerate, Enterprise, and customers who were onboarded to the Level Access Platform before February 20th, 2023.
Create components to identify and track accessibility issues in recurring design components. Run a scan after creating a component to more clearly visualize issues and prioritize remediation tasks.
Create components
To create a component:
- Navigate to the workspace level.
- Under Workspace, select Digital assets.
- Choose the digital asset.
- Perform one of the following actions:
- Select Scans, and then the Components tab -or
- Under Manage, select Digital asset settings, and then Components.
- Select Add component.
- Enter the Component name.
- Enter the CSS selector. Learn more about CSS selector syntax. Note that you can't use the "|" (vertical bar), which is not supported as a valid selector. Here are some examples of valid selectors:
- .primary-button
- [class=”carousel”]
- [component-name~=”card”]
- Alternatively, to get the CSS selector:
- Right-click the web page and select Inspect. The console will open.
- Select the code until the chosen component on the webpage is highlighted.
- Right-click the code and select Copy > Copy selector.
- In the Platform, paste the code in the CSS selector field.
- Optional:
- Enter a description of the component.
- Upload an image of the component. It will appear as a thumbnail in the Components table and the Components report in the scan results.
- Select Create.
CSS selector reference table
The table below outlines CSS selector attributes and corresponding symbols. For more detailed information on CSS selectors, visit CSS Attribute Selector.
| Attribute | Symbol used |
|---|---|
| Using id | # |
| Using class name | . |
| Using attribute | [attribute='value'] |
| Using multiple attributes | [attribute1='value1'][attribute2='value2'] |
| Contains | * |
| Starts with | ^ |
| Ends with | $ |
Comments
0 comments
Article is closed for comments.