Autodesk / Autodesk/hig

Dropdown has no caret inside a parent with background

Open
#1,314 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
193
Forks
112
PR merge metrics
No merged PRs in 30d

Description

When a `Dropdown` component is inside of any element that is above its parent and has a `background-color`, the caret on the right doesn't show. It's very clearly because the `.hig__dropdown__input-caret` element is assigned `z-index: -1`, which places it under the parent element.

Here's a screenshot to demonstrate (the dropdowns on the right don't show carets):
![sidebar-arrow-issue](https://user-images.githubusercontent.com/3489148/47516371-52553080-d853-11e8-9f79-9db7a86d8ddf.png)

Is there any reason that a `z-index` is assigned to the caret?

Contributor guide

Open the contributing guide

Research direction

Start by inspecting the .hig__dropdown__input-caret style and reproduce the issue with a Dropdown inside an element that has a background-color. Check the stacking behavior around its z-index, then verify that carets remain visible in the reported parent-background scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.