Following from my post here #1880100-19: Allow to configure the h3 element for view style plugins I was encouraged to set up a new thread by @dawehner to suggest some enhancements to the behavior in the admin UI using the states API.

When encouraging folks to "Choose the HTML element" it might be useful to encourage folks to learn how to use headings properly. It would be good to encourage people to use proper semantics.

It would be better if you also added the HTML5 hidden attribute, so rather than simply providing the style information via CSS:
<div class="form-item form-type-checkbox form-item-style-options-grouping-0-rendered" style="display: none;">

It would look a bit more like:
<div class="form-item form-type-checkbox form-item-style-options-grouping-0-rendered" style="display: none;" hidden>

That needs to switch along with the style information so that the semantic information is being passed along to AT.

Comments

dawehner’s picture

Title: Accessibility improvements to Views admin UI - States API » Accessibility improvements for States API
Component: views_ui.module » javascript

adapting title.

mgifford’s picture

mgifford’s picture

Version: 8.0.x-dev » 8.1.x-dev
Issue summary: View changes

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.