Nesting

This is a list of existing patterns applied to nesting UI elements to show dependency. Checkboxes are used as an example. Nesting also occurs with other UI elements like radio buttons, drop-downs etc.

To best experience the differences, enable the first sub option, then disable the primary option and re-enable it.

Disable Sub & hide State

show that sub are also disabled with parent
(seen in macOS & Firefox)
 

Hide Sub

hide sub elements if they can not be used
(seen in Firefox)
 


Disable Sub

retain previous sub-state in disabled elements
(seen in Windows, macOS & Firefox)
 

Hide Sub Toggle

hide sub elements if they can not be used
(seen in Windows)
 

Hide & Reset Sub

hide sub elements and reset their value to default
(seen in Firefox)
 

Double-Dependent

show previous sub-state in disabled elements
(seen in HTML, Windows & macOS)
 

Related: