config/schema/devel_a11y.schema.yml | 16 ++++++++-------- devel_a11y.module | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/config/schema/devel_a11y.schema.yml b/config/schema/devel_a11y.schema.yml index 95762b2..236e195 100644 --- a/config/schema/devel_a11y.schema.yml +++ b/config/schema/devel_a11y.schema.yml @@ -2,30 +2,30 @@ devel_a11y.settings: type: mapping - label: '' + label: 'All "devel_a11y" settings' mapping: aural: type: mapping - label: '' + label: 'Aural accessibility development settings' mapping: announce: type: mapping - label: '' + label: 'Drupal.announce() announcments' mapping: log: type: boolean - label: '' + label: 'Log announcements to the browser console' keyboard: type: mapping - label: '' + label: 'Keyboard accessibility development settings' mapping: tabbingmanager: type: mapping - label: '' + label: 'Drupal.TabbingManager tabbing constraints' mapping: log: type: boolean - label: '' + label: 'Log when tabbing is constrained' visualize: type: boolean - label: '' + label: 'Visualize which elements can be tabbed to' diff --git a/devel_a11y.module b/devel_a11y.module index cd8e413..d5597b2 100644 --- a/devel_a11y.module +++ b/devel_a11y.module @@ -12,6 +12,7 @@ * Dynamically attaches devel_a11y's overrides depending on its configuration. */ function devel_a11y_page_attachments(array &$attachments) { + $attachments['#cache']['contexts'][] = 'user.permissions'; if (!\Drupal::currentUser()->hasPermission('access devel information')) { return; }