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 small bugs in InlineAutocomplete #2318

Merged
merged 3 commits into from
Sep 8, 2022
Merged

Fix small bugs in InlineAutocomplete #2318

merged 3 commits into from
Sep 8, 2022

Conversation

iansan5653
Copy link
Contributor

  1. The aria-live hint text for screen readers related to the InlineAutocomplete component is visually hidden with clip-path: circle(0), but this doesn't remove it from the layout of the page. It's inside a Portal component so it renders into the primerPortalRoot portal. Because the hint text element is only visually hidden, it could cause the portal root to push page content around unintentionally. To fix this, I have added position: absolute to the element to remove it from the page flow.
  2. Recent changes seem to have removed the leading element from ActionList items when there is no selecting enabled. A previous hack to hide that element so it wouldn't indent items is now breaking the leading icons in InlineAutocomplete suggestions, preventing the emojis and other icons from appearing. The simple fix for this is to remove the styling hack.

@iansan5653 iansan5653 self-assigned this Sep 8, 2022
@iansan5653 iansan5653 requested review from a team and siddharthkp September 8, 2022 18:08
@changeset-bot
Copy link

changeset-bot bot commented Sep 8, 2022

🦋 Changeset detected

Latest commit: a5faa74

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

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

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

@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2022

size-limit report 📦

Path Size
dist/browser.esm.js 76.32 KB (+0.01% 🔺)
dist/browser.umd.js 76.93 KB (+0.01% 🔺)

@iansan5653 iansan5653 temporarily deployed to github-pages September 8, 2022 18:16 Inactive
@colebemis colebemis merged commit 1030509 into main Sep 8, 2022
@colebemis colebemis deleted the markdown-editor-fixes branch September 8, 2022 20:07
@primer-css primer-css mentioned this pull request Sep 8, 2022
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