Clarity: Horizontal and vertical scrollbars appear when dropdowns are used in header-actions

Created on 17 Aug 2017  路  6Comments  路  Source: vmware/clarity

[x ] bug
[ ] feature request
[ ] enhancement

Actual behavior

When dropdowns are used in header-actions, horizontal and vertical scrollbars appear. These scrollbars disappear after clicking on the action button on the header.

Expected behavior

These scrollbars should not appear.

Reproduction of behavior

https://plnkr.co/edit/13kOG9?p=preview

Environment details

  • Angular version: 4.0.X

  • Clarity version: 0.10.0

  • Browser: [ Chrome | Firefox ]

Dev duplicate bug

Most helpful comment

@soumyakantiroychowdhury: Could you please try using the *clrIfOpen directive along with the clr-dropdown-menu https://plnkr.co/edit/ifYHb1M4YV83Evrvscbv?p=preview. That should fix the issue. I will still keep this issue open because this is a bug with Clarity UI. We need to mark the dropdown menu as display: none instead of visibility: hidden

All 6 comments

@soumyakantiroychowdhury: Could you please try using the *clrIfOpen directive along with the clr-dropdown-menu https://plnkr.co/edit/ifYHb1M4YV83Evrvscbv?p=preview. That should fix the issue. I will still keep this issue open because this is a bug with Clarity UI. We need to mark the dropdown menu as display: none instead of visibility: hidden

display: none won't let the dropdown (or tooltips, which is a better use case) be read inline by screen readers.

What about just making sure position: absolute is always set on the dropdown menu, and keep visibility: hidden? The content would still be read inline by screenreaders, but the positioning would ensure the element is taken out of the flow of the page so we wouldn't have unwanted scrollbars anymore.

Thanks Aditya. Your suggestion worked.

@youdz: .dropdown-menu already has position: absolute irrespective of whether its open or not. It still occupies that space as you can see in the screenshot below or if you inspect the plnkr in the issue description :-(

image

Duplicate of #1232. Closing this issue. Please subscribe to #1232 for more updates.

Hi there 馃憢, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mayesgr picture mayesgr  路  3Comments

amellnik picture amellnik  路  3Comments

elesueur picture elesueur  路  3Comments

dennitsa picture dennitsa  路  4Comments

gperdomor picture gperdomor  路  3Comments