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

AO3-6553 Use div with a role rather than nav element #4608

Merged
merged 1 commit into from
Aug 20, 2023

Conversation

sarken
Copy link
Collaborator

@sarken sarken commented Aug 16, 2023

Issue

https://otwarchive.atlassian.net/browse/AO3-6553

Purpose

The two column layout breaks when we switch to nav because it relies on nth-of-type to apply styling to the odd-numbered modules. You can't do .class:nth-of-type without specifying an element (div), so things get complicated if we switch from div to nav.

Testing Instructions

In addition to the original testing instructions, log in to an account with no favorite tags and ensure the layout on the homepage is normal.

References

#4581

alien originally asked if we could revert this because they have a lot on their plate, but when I realized what the issue was and asked if they'd mind me fixing it instead of reverting, they said it was fine.

The two column layout breaks with nav because it relies on nth-of-type, which can't be
used with a class as the sole selector.
@sarken sarken added Priority: High - Broken on Test Merge immediately after approval Awaiting Review labels Aug 16, 2023
@ariana-paris ariana-paris merged commit 801ce09 into otwcode:master Aug 20, 2023
@sarken sarken deleted the AO3-6553 branch September 7, 2023 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants