- Issue created by @chroid
- ๐ณ๐ฑNetherlands Lendude Amsterdam
If we are fixing this visually we should also add some indication for screen readers that a tab is disabled, as far as I can find, we don't give any indication of that either
- ๐ฎ๐ณIndia Aziza Anwari Gujarat
Have tried to put the #3 comment in mind
- last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago 29,388 pass - Status changed to Needs review
over 1 year ago 11:05am 17 May 2023 - Status changed to Needs work
over 1 year ago 11:53am 17 May 2023 - ๐ณ๐ฑNetherlands Lendude Amsterdam
Nice start, thanks for working on this!
The logic can probably be a bit easier to read (and without all the nested ifs and reused ifs) in something like this:
$link_label_parts = []; if (!empty($variables['element']['#disabled'])) { $variables['is_disabled'] = TRUE; $link_label_parts[] = t('disabled'); } if (!empty($variables['element']['#active'])) { $variables['is_active'] = TRUE; $link_label_parts[] = t('active'); } // Add text to indicate active or disabled tab for non-visual users. if (!empty($link_label_parts)) { $link_label_text = t('(@states tab)', ['@states' => implode(' ', $link_label_parts)]); $link_label = new FormattableMarkup('<span class="visually-hidden">@label</span>', ['@label' => $link_label_text]); $link_text = t('@local-task-title@label', ['@local-task-title' => $link_text, '@label' => $link_label]); }
Didn't test this, so might need some tweaks to actually work :)
Also we need an automated test to make sure the new label is shown.
- Status changed to Needs review
over 1 year ago 5:36am 1 June 2023 - last update
over 1 year ago 29,402 pass - ๐ฎ๐ณIndia Aziza Anwari Gujarat
Have updated the patch as said in #7 with tests.
- last update
over 1 year ago 29,403 pass - ๐ฎ๐ณIndia Aziza Anwari Gujarat
Have updated the patch as said in #7 with tests.
- last update
over 1 year ago 29,403 pass - last update
over 1 year ago 29,403 pass - Status changed to Needs work
over 1 year ago 1:40pm 1 June 2023 - ๐บ๐ธUnited States smustgrave
Could the issue summary be updated? The current proposed solution talks about adding some styling but the patch appears to be doing more.
As a UI change before/after screenshots in the issue summary would help too.
Also kinda nitpicky can the test theme use stark
Have not yet tested.
Thanks.
- ๐ฎ๐ณIndia Aziza Anwari Gujarat
Updated the patch as per #11, that is changed the default theme to stark in the test
And added screenshot - last update
over 1 year ago 29,403 pass - last update
over 1 year ago 29,403 pass - ๐บ๐ธUnited States smustgrave
Issue summary still needs updating please.
- Status changed to Needs review
over 1 year ago 1:53pm 14 June 2023 - Status changed to RTBC
over 1 year ago 2:58pm 14 June 2023 - last update
over 1 year ago 29,449 pass - last update
over 1 year ago 29,487 pass - last update
over 1 year ago 29,499 pass, 1 fail The last submitted patch, 12: 3358329-12.patch, failed testing. View results โ
- last update
over 1 year ago 30,147 pass - last update
over 1 year ago 30,135 pass, 2 fail - ๐บ๐ธUnited States smustgrave
#2001094: Design and implement style changes to signify disabled views on the Views UI edit form โ closed a duplicate.
This looks close and should be converted to MR and typehints added for new functions.
- ๐ฎ๐ณIndia TanujJain-TJ
Tanuj. โ made their first commit to this issueโs fork.
- Assigned to pooja saraah
- Issue was unassigned.
- Status changed to Needs review
11 months ago 10:07am 25 January 2024 - Assigned to Kanchan Bhogade
- Issue was unassigned.
- Status changed to RTBC
11 months ago 11:50am 25 January 2024 - ๐ฎ๐ณIndia Kanchan Bhogade
Hi,
I have verified and tested MR !6316 on Drupal version 11.x
MR applied successfully...Testing steps:
- Install Drupal 11.x
- Create a view with multiple display
- Disable any one display
- Check for disabled display tab visually changed or not
- Apply the patch and check again for the same
Test Result:
The disable display tab changed visually, looks good to meAttaching screenshots for reference.
Moving to RTBC
- Status changed to Needs work
11 months ago 1:50pm 25 January 2024 - ๐บ๐ธUnited States smustgrave
@Tanju please respect others when they said they would work on it and assigned to themselves. If a few days had passed sure thatโs fine but wasnโt the case. Also was tagged for novice users which based on your post history you could work on non novice issues.
It seems the updates for type hints in #18 were not added. They were nitpicky but should still be done.@Kanchan Bogarde when marking RTBC please read all the comments make sure everything has been addressed