Skip to content

fix: remove NavBar CSS that was interfering with algolia #628

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 18, 2020

Conversation

skirtles-code
Copy link
Contributor

Description of Problem

Originally reported in #556, there's an vertical alignment problem with the text of the 'buttons' in the search box. The specifics vary depending on the platform but here's an example:

text alignment

The text is supposed to be central but instead it's at the top of the buttons.

Further, on small screens the search box is supposed to hide those buttons but currently it does not.

Both problems are caused by the same CSS. NavBar.vue sets display: inline-block for all descendent <span> elements, which includes the search box.

Proposed Solution

I have removed the relevant CSS.

Testing across various platforms I wasn't able to see any visible change to the NavBar, aside from the desired changes to the search box. The various <span> elements are now a few pixels shorter but that change isn't visible and I don't believe it impacts the clickable area of the surrounding elements.

Additional Information

There are other problems with that header in narrowish viewports. Content starts overlapping long before the media query breakpoints kick in. That isn't directly related to this change so I haven't attempted a fix here.

@NataliaTepluhina NataliaTepluhina merged commit e42e413 into vuejs:master Oct 18, 2020
nick-lai pushed a commit to nick-lai/docs-next that referenced this pull request Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants