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

fix covered select options #803

Merged
merged 2 commits into from Sep 7, 2022
Merged

Conversation

dimaMachina
Copy link
Collaborator

there is no way without using react portal

more info tailwindlabs/headlessui#59

@changeset-bot
Copy link

changeset-bot bot commented Sep 4, 2022

🦋 Changeset detected

Latest commit: 5c51e72

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Sep 4, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
nextra-theme-docs-dev ✅ Ready (Inspect) Visit Preview Sep 4, 2022 at 9:45PM (UTC)
nextra-v2 ✅ Ready (Inspect) Visit Preview Sep 4, 2022 at 9:45PM (UTC)
1 Ignored Deployment
Name Status Preview Updated
nextra ⬜️ Ignored (Inspect) Sep 4, 2022 at 9:45PM (UTC)

@shuding
Copy link
Owner

shuding commented Sep 5, 2022

I think that popup is right-aligned currently, did we run into an issue with that?

@dimaMachina
Copy link
Collaborator Author

@shuding it’s right aligned but in the latest PR with hided sidebar without this PR popup (switch language or theme) will be covered since container width is too small

@shuding
Copy link
Owner

shuding commented Sep 5, 2022

Ah that makes sense!

Copy link
Owner

@shuding shuding left a comment

Choose a reason for hiding this comment

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

Love the new style! Can you make sure the first item is always expanded?

CleanShot 2022-09-05 at 20 06 03@2x

@dimaMachina
Copy link
Collaborator Author

Love the new style! Can you make sure the first item is always expanded?

CleanShot 2022-09-05 at 20 06 03@2x

Do we really need it? Because on mobile this will be extra expanded, more info in my comment

#798 (comment)

If you still prefer extra expanded I’ll change it

@shuding
Copy link
Owner

shuding commented Sep 6, 2022

Got it! I think then we only make it extend on desktop?

<>
<script
dangerouslySetInnerHTML={{
__html: `document.documentElement.setAttribute('dir','${direction}')`
Copy link
Owner

Choose a reason for hiding this comment

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

Makes sense! Does it work when the language changes like from LTR to RTL?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah it works, also there is no shrinking on initial loading

@dimaMachina dimaMachina marked this pull request as draft September 7, 2022 01:43
@dimaMachina
Copy link
Collaborator Author

dimaMachina commented Sep 7, 2022

will convert it to draft until I apply your suggestion

Update

will fix in on merged PR

@dimaMachina dimaMachina marked this pull request as ready for review September 7, 2022 19:07
@dimaMachina dimaMachina merged commit 1633cc9 into _focus Sep 7, 2022
@dimaMachina dimaMachina deleted the _fix-covered-select-options branch September 7, 2022 19:07
dimaMachina added a commit that referenced this pull request Sep 13, 2022
* better focus ui, use ring color as theme hue color

* Update packages/nextra-theme-docs/src/components/sidebar.tsx

* Update packages/nextra-theme-docs/src/mdx-components.tsx

* fix covered select options (#803)

* fix covered select options

* remove popper.tsx (was created for test purposes)

* merge fixes

* rebase fixes

* works

* fixes
tatukoivisto pushed a commit to tatukoivisto/nextra that referenced this pull request Aug 20, 2023
* better focus ui, use ring color as theme hue color

* Update packages/nextra-theme-docs/src/components/sidebar.tsx

* Update packages/nextra-theme-docs/src/mdx-components.tsx

* fix covered select options (shuding#803)

* fix covered select options

* remove popper.tsx (was created for test purposes)

* merge fixes

* rebase fixes

* works

* fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants