Skip to content

Header dropdown menu position is not relevant to the Header button #84

Answered by mayank99
danleydmello asked this question in Q&A
Discussion options

You must be logged in to vote

Not sure I understand the problem here.

If you're talking about the React implementation, Header button relies on our DropdownMenu component, which is implemented using JS. Sure it's a simple case that could be done with pure CSS, but we want to reuse our existing components wherever possible.

You are not forced to use JS in your implementation (we don't have any JS in the base CSS package). So you could write your own rules/markup for handling the menu. Using :focus-within is one approach of doing it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@veekeys
Comment options

veekeys May 17, 2021
Collaborator

Answer selected by danleydmello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants