Skip to content
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

chore(v2): upgrade Infima #2669

Merged
merged 3 commits into from
Apr 27, 2020
Merged

chore(v2): upgrade Infima #2669

merged 3 commits into from
Apr 27, 2020

Conversation

yangshun
Copy link
Contributor

Motivation

Upgrade to infima@0.2.0-alpha.8 which brings about some typography changes and navbar caret.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

See Netlify.

Related PRs

(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

@yangshun yangshun requested a review from lex111 as a code owner April 26, 2020 18:15
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Apr 26, 2020
@@ -66,7 +66,7 @@ function NavItem({items, position, ...props}) {
<ul className="dropdown__menu">
{items.map((linkItemInner, i) => (
<li key={i}>
<NavLink className="navbar__item navbar__link" {...linkItemInner} />
Copy link
Contributor Author

@yangshun yangshun Apr 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to change this otherwise the carets will also show up for the dropdown items. We lose the active highlighting here sadly.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh-huh, so for dropdown items we need to use only one CSS class of dropdown__link. Then we need to add an active dropdown item class to Infima and then specify it in the NavBar component. Right? I will fix it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix is ready, I'm waiting for the new version of Infima, which will define CSS class for active dropdown item.

@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented Apr 26, 2020

Deploy preview for docusaurus-2 ready!

Built with commit ca4a94a

https://deploy-preview-2669--docusaurus-2.netlify.app

@lex111 lex111 added the status: don't merge yet This PR is completed, but we are still waiting for other things to be ready. label Apr 26, 2020
@yangshun yangshun removed the status: don't merge yet This PR is completed, but we are still waiting for other things to be ready. label Apr 27, 2020
@yangshun yangshun merged commit 1d8cc4b into master Apr 27, 2020
@yangshun yangshun deleted the yangshun/infima branch April 27, 2020 02:50
@lex111 lex111 added this to the v2.0.0-alpha.51 milestone Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants