Minor issues in the Toolbar module.

  • In toolbar.html.twig, nav tag errors.
  • In menu--toolbar.html.twig, space errors.
  • In ToolbarVisualView.js, '(antiOrientation === 'vertical') ? true : false' can be simplified to '(antiOrientation === 'vertical'), since its returning true/false.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

heykarthikwithu created an issue. See original summary.

heykarthikwithu’s picture

Status: Active » Needs review
FileSize
1.99 KB
heykarthikwithu’s picture

Priority: Minor » Normal
Issue tags: +Quick fix
nod_’s picture

Title: Minor issues in the Toolbar module. » Unnecessary ternary condition in toolbar JS
Category: Bug report » Task
Status: Needs review » Needs work
Issue tags: +JavaScript

Agreed on the ternary condition. You could even remove the parenthesis.

the nav tag is fine, I even asked morten if he was ok with it. He was: #2548027-4: Follow-up add back aria-label to toolbar tray.
I don't see the problem with the menu--toolbar file.

Setting back to NW, can you roll the patch with only the ternary condition change please?

heykarthikwithu’s picture

Assigned: Unassigned » heykarthikwithu

working in this.

heykarthikwithu’s picture

Assigned: heykarthikwithu » Unassigned
Status: Needs work » Needs review
FileSize
726 bytes
1.67 KB

remove the parenthesis.
rolled the patch with only the ternary condition change.

nod_’s picture

Status: Needs review » Reviewed & tested by the community

All good, thanks!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 970cfb3 and pushed to 8.0.x. Thanks!

  • alexpott committed 970cfb3 on 8.1.x
    Issue #2603988 by heykarthikwithu: Unnecessary ternary condition in...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.