Skip to content
Snippets Groups Projects
Verified Commit 5d5a43b8 authored by Dave Long's avatar Dave Long
Browse files

Issue #3403198 by simohell, mgifford, itmaybejj: Details do not benefit from aria-pressed

(cherry picked from commit 91a743c1)
parent 56e9f8a8
No related branches found
No related tags found
9 merge requests!8376Drupal views: adding more granularity to the ‘use ajax’ functionality,!8300Issue #3443586 View area displays even when parent view has no results.,!7567Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7565Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7509Change label "Block description" to "Block type",!7344Issue #3292350 by O'Briat, KlemenDEV, hswong3i, smustgrave, quietone: Update...,!6922Issue #3412959 by quietone, smustgrave, longwave: Fix 12 'un' words,!6848Issue #3417553 by longwave: Remove withConsecutive() in CacheCollectorTest,!6720Revert "Issue #3358581 by pfrenssen, _tarik_, a.dmitriiev, smustgrave:...
Pipeline #97811 passed
Pipeline: drupal

#97814

    ......@@ -255,7 +255,6 @@ function template_preprocess_details(&$variables) {
    $variables['summary_attributes']['aria-controls'] = $element['#attributes']['id'];
    }
    $variables['summary_attributes']['aria-expanded'] = !empty($element['#attributes']['open']) ? 'true' : 'false';
    $variables['summary_attributes']['aria-pressed'] = $variables['summary_attributes']['aria-expanded'];
    }
    $variables['title'] = (!empty($element['#title'])) ? $element['#title'] : '';
    // If the element title is a string, wrap it a render array so that markup
    ......
    ......@@ -23,7 +23,6 @@
    $summary.attr({
    'aria-expanded': open,
    'aria-pressed': open,
    });
    },
    );
    ......
    ......@@ -134,7 +134,6 @@ public function testDetailsChildVisibility() {
    // Assert that both aria-expanded and aria-pressed are true.
    $this->assertEquals('true', $summary->getAttribute('aria-expanded'));
    $this->assertEquals('true', $summary->getAttribute('aria-pressed'));
    }
    /**
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment