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

update docs header #1128

Merged
merged 2 commits into from
Feb 11, 2022
Merged

Conversation

miguelcobain
Copy link
Collaborator

@miguelcobain miguelcobain commented Feb 10, 2022

Updates <DocsHeader/> component and its sub-components.

});
}
});
matches.push(matchingText);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There is a bug somewhere around this logic of finding matches for the searched text.
It is however not related to this update, since the problem is already present on ec-addon-docs.

Basically, it presents very weird matches for the query you type. I suggest we address this separately.

@@ -57,7 +57,6 @@ body > .ember-view {
@apply docs-flex;
@apply docs-flex-col;

@apply docs-mt-1;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

When you open the version selector, you could see the page jumping down a little bit (you can see that happening right now on the current docs website).

This was because opening the dropdown adds a new .ember-view div on the body, which gets targeted by this selector. Deleting the top margin didn't result in anything weird for me and fixed the problem.

Choose a reason for hiding this comment

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

@miguelcobain Thanks for removing this! I noticed that in some of the documentation routes with lesser content, there's a similar but more pronounced white space jank due to the flex styles applied on .ember-view

UX Jank on version dropdown trigger

What do you think about introducing a more specific class here instead of applying on the ember-view?

@RobbieTheWagner RobbieTheWagner merged commit 57312b2 into ember-learn:master Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants