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

Make final position responsive #1145

Merged
merged 3 commits into from
Sep 10, 2020
Merged

Make final position responsive #1145

merged 3 commits into from
Sep 10, 2020

Conversation

simurai
Copy link
Contributor

@simurai simurai commented Aug 24, 2020

This makes the "final position" utilities ([top/left/right/bottom]-0) responsive (e.g. right-md-0, bottom-lg-0). This can be handy when moving select menus, dropdowns, popovers etc. around for certain responsive breakpoints. This came up in https://github.com/github/github/pull/153189.

It also adds an option to "reset" a final position (e.g. right-0 right-md-auto).

/cc @primer/ds-core

@vercel
Copy link

vercel bot commented Aug 24, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/primer/primer-css/9fik6p6wa
✅ Preview: https://primer-css-git-final-position.primer.vercel.app

@simurai simurai requested review from jonrohan, a team, emilybrick and colinkeany and removed request for a team and emilybrick August 24, 2020 00:46
Copy link
Member

@jonrohan jonrohan left a comment

Choose a reason for hiding this comment

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

Should we include an option for the default positions? Is it auto?

@vercel vercel bot temporarily deployed to Preview September 10, 2020 02:27 Inactive
@simurai simurai changed the base branch from master to release-15.2.0 September 10, 2020 02:52
@simurai simurai merged commit edcd5a8 into release-15.2.0 Sep 10, 2020
@simurai simurai deleted the final-position branch September 10, 2020 02:52
@simurai simurai mentioned this pull request Sep 10, 2020
8 tasks
@simurai
Copy link
Contributor Author

simurai commented Sep 10, 2020

Just noticed that right-0 right-md-auto won't work on marketing pages because it gets overridden by the marketing utilities that also have right-0.

Something we should look into fixing. Maybe remove 0 from the $marketing-all-spacers or add an additional auto to the marketing utilities.

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.

2 participants