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.
Creating components allows you to identify and track design components with potential accessibility issues. Running a scan after creating a component gives you a different way to visualize issues and helps you prioritize remediation tasks.
Create components
To create a component:
- Go to Digital assets.
- Choose the digital asset.
- Select Scans.
- Choose 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.