Visual Tests

With so many ways to build with and use Web Awesome components, visual tests help ensure consistency and prevent broken styles from leaking into production.

These tests can come in handy when creating or customizing your own theme. Look through each test case to make sure that custom styles in your theme cover all of the attributes, utilities, and built-in styles Web Awesome offers.

Native Color Size Alignment Harmony

Alignment

Link to This Section

Alignment tests reveal the top boundary, vertical center, and bottom boundary of components. These help to evaluate how well components align with one another when arranged horizontally.

Color

Link to This Section

Color tests ensure that both the variant attribute and .wa-[variant] classes have identical results for components that support them. Developers should be able to use both of these interchangeably to give the component the intended semantic color.

Badge

Link to This Section
variant="" .wa-[variant]
brand
neutral
success
warning
danger

Button

Link to This Section
variant="" .wa-[variant]
brand
neutral
success
warning
danger

Callout

Link to This Section
variant="" .wa-[variant]
brand
neutral
success
warning
danger

Tag

Link to This Section
variant="" .wa-[variant]
brand
neutral
success
warning
danger

Harmony

Link to This Section

Harmony tests show how related components look together. These can help validate design choices or reveal where design intervention is needed to get a consistent, harmonious look and feel.

Form Controls

Link to This Section

Progress

Link to This Section

Native

Link to This Section

Native style tests ensure that supported native elements and utilities look the same as their Web Awesome component counterparts. Native elements may also support the same appearance, color, and size utilities as components.

Button

Link to This Section
<wa-button> <button>
default Button
accent
filled-outlined
filled
outlined
plain
s Small
m Medium
l Large
pill Pill

Checkbox

Link to This Section
<wa-checkbox> <input type="checkbox">
default Checkbox
checked Checkbox

Color Picker

Link to This Section
<wa-color-picker> <input type="color">
default

Details

Link to This Section
<wa-details> <details>
default Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Summary

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

dir="rtl" استخدام طريقة لوريم إيبسوم لأنها تعطي توزيعاَ طبيعياَ -إلى حد ما- للأحرف عوضاً عن
تبديلني

استخدام طريقة لوريم إيبسوم لأنها تعطي توزيعاَ طبيعياَ -إلى حد ما- للأحرف عوضاً عن

Input

Link to This Section
<wa-input> <input>
default
type="password"
type="date"
type="time"
filled
s
m
l

Progress Bar

Link to This Section
<wa-progress-bar> <progress>
default

Radio

Link to This Section
<wa-radio> <input type="radio">
default Radio
checked Radio

Select

Link to This Section
<wa-select> <select>
default Option
filled Option
s Option
m Option
l Option

Slider

Link to This Section
<wa-slider> <input type="range">
default

Textarea

Link to This Section
<wa-textarea> <textarea>
default
filled
s
m
l

Size

Link to This Section

Size tests ensure that both the size attribute and .wa-size-[xs|s|m|l|xl] classes have identical results for components that support them. Developers should be able to use both of these interchangeably on components to get the intended size.

Button

Link to This Section
size="" .wa-size-[xs|s|m|l|xl]
xs Button
s Button
m Button
l Button
xl Button

Callout

Link to This Section
size="" .wa-size-[xs|s|m|l|xl]
xs Callout
s Callout
m Callout
l Callout
xl Callout

Checkbox

Link to This Section
size="" .wa-size-[xs|s|m|l|xl]
xs Checkbox
s Checkbox
m Checkbox
l Checkbox
xl Checkbox

Color Picker

Link to This Section
size="" .wa-size-[xs|s|m|l|xl]
xs
s
m
l
xl
Link to This Section
size="" .wa-size-[xs|s|m|l|xl]
xs Dropdown Menu Item 1 Menu Item 2
s Dropdown Menu Item 1 Menu Item 2
m Dropdown Menu Item 1 Menu Item 2
l Dropdown Menu Item 1 Menu Item 2
xl Dropdown Menu Item 1 Menu Item 2

Input

Link to This Section
size="" .wa-size-[xs|s|m|l|xl]
xs
s
m
l
xl

Radio

Link to This Section
size="" .wa-size-[xs|s|m|l|xl]
xs Radio
s Radio
m Radio
l Radio
xl Radio

Radio Button

Link to This Section
size="" .wa-size-[xs|s|m|l|xl]
xs Radio Button
s Radio Button
m Radio Button
l Radio Button
xl Radio Button

Radio Group

Link to This Section
size="" .wa-size-[xs|s|m|l|xl]
xs
s
m
l
xl

Rating

Link to This Section
size="" .wa-size-[xs|s|m|l|xl]
xs
s
m
l
xl

Select

Link to This Section
size="" .wa-size-[xs|s|m|l|xl]
xs Option
s Option
m Option
l Option
xl Option

Switch

Link to This Section
size="" .wa-size-[xs|s|m|l|xl]
xs Switch
s Switch
m Switch
l Switch
xl Switch

Textarea

Link to This Section
size="" .wa-size-[xs|s|m|l|xl]
xs
s
m
l
xl
    No results