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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Security and Insights tabs to more-dropdown #3547

Merged
merged 2 commits into from
Sep 14, 2020
Merged

Move Security and Insights tabs to more-dropdown #3547

merged 2 commits into from
Sep 14, 2020

Conversation

fregante
Copy link
Member

@fregante fregante commented Sep 13, 2020

Closes #3354 (this issue wasn't a "good first issue" after all 馃槄)
Replaces and closes #3482

This seems to work, but #3347 still exists, complicating things a bit.

@@ -104,7 +104,7 @@ async function init(): Promise<false | void> {
releasesTab.setAttribute('aria-current', 'page');
}

select('[data-menu-item="insights-tab"]', repoNavigationBar)!.after(
select('.dropdown-divider', repoNavigationBar)!.before(
Copy link
Member Author

Choose a reason for hiding this comment

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

For the record, this code seems to be executed after more-dropdown, so [data-menu-item="insights-tab"] no longer exists

@fregante fregante marked this pull request as draft September 13, 2020 21:14
@fregante
Copy link
Member Author

fregante commented Sep 13, 2020

This works in Chrome but seems to break the overflow logic in Firefox.

Actually, no, but I might have found another more-dropdown bug: #3548

@fregante fregante marked this pull request as ready for review September 13, 2020 21:18
@fregante fregante changed the title Move Security and Insights tabs to dropdown Move Security and Insights tabs to more-dropdown Sep 13, 2020
@fregante fregante merged commit 04375d9 into master Sep 14, 2020
@fregante fregante deleted the hide-tabs branch September 14, 2020 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Move "Security" and "Insights" repository tab to more-dropdown
1 participant