File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -67,16 +67,7 @@ impl NodeWrapper<'_> {
6767 }
6868
6969 fn is_selected ( & self ) -> bool {
70- match self . 0 . role ( ) {
71- // https://www.w3.org/TR/core-aam-1.1/#mapping_state-property_table
72- // SelectionItem.IsSelected is set according to the True or False
73- // value of aria-checked for 'radio' and 'menuitemradio' roles.
74- Role :: RadioButton | Role :: MenuItemRadio => self . 0 . toggled ( ) == Some ( Toggled :: True ) ,
75- // https://www.w3.org/TR/wai-aria-1.1/#aria-selected
76- // SelectionItem.IsSelected is set according to the True or False
77- // value of aria-selected.
78- _ => self . 0 . is_selected ( ) . unwrap_or ( false ) ,
79- }
70+ self . 0 . is_selected ( ) . unwrap_or ( false )
8071 }
8172
8273 fn content_description ( & self ) -> Option < String > {
You can’t perform that action at this time.
0 commit comments