-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Essentials: Add highlight addon #17800
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 8396fc8. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
☁️ Nx Cloud ReportWe didn't find any information for the current pull request with the commit 910cdd8. Check the Nx Cloud Github Integration documentation for more information. Sent with 💌 from NxCloud. |
@winkerVSbecks I think it belongs as an addon even though it doesn't really do much on its own. We're trying to slim down the core, and having it as an addon keeps it separate and also it can be opt out. WDYT? |
@shilman that makes sense. In the future, I'd like to add an overlay option which would be injected via decorators. So, an addon totally makes sense. It's in essentials so it'll be available by default in most cases |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@winkerVSbecks this looks amazing, fantastic job on this one! Left a couple of items to be addressed and this is good on my end.
…s -> addon-highlight.stories
@jonniebigodes updated snippets |
@winkerVSbecks thanks for taking care of my feedback so promptly and including snippets for the other frameworks! On my end, this is good to go! |
@shilman not sure why |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #17991, especially the bit about testing
Addon-highlight: Convert to simplified addon style
@winkerVSbecks since this is a breaking change, a few suggestions:
|
@winkerVSbecks We updated the merge target to |
# Conflicts: # addons/a11y/package.json # addons/a11y/src/components/A11yContext.tsx # addons/essentials/package.json # examples/html-kitchen-sink/package.json # examples/official-storybook/main.ts # examples/official-storybook/package.json # examples/preact-kitchen-sink/package.json # examples/server-kitchen-sink/package.json # examples/svelte-kitchen-sink/package.json # examples/vue-kitchen-sink/package.json # examples/web-components-kitchen-sink/package.json # examples/web-components-kitchen-sink/yarn.lock # lib/core-server/src/__snapshots__/cra-ts-essentials_preview-dev-posix # lib/core-server/src/__snapshots__/cra-ts-essentials_preview-prod-posix # lib/core-server/src/__snapshots__/html-kitchen-sink_preview-dev-posix # lib/core-server/src/__snapshots__/html-kitchen-sink_preview-prod-posix # lib/core-server/src/__snapshots__/vue-3-cli_preview-dev-posix # lib/core-server/src/__snapshots__/vue-3-cli_preview-prod-posix # lib/core-server/src/__snapshots__/web-components-kitchen-sink_preview-dev-posix # lib/core-server/src/__snapshots__/web-components-kitchen-sink_preview-prod-posix # nx.json # workspace.json # yarn.lock
I think I resolved the merge conflicts @winkerVSbecks ! |
Thanks @ndelangen. I'll take look to confirm everything is working as expected. |
@shilman this is ready to merge |
@winkerVSbecks the core tests are failing. i've re-run them to see if it was a CI hiccup. if it fails a second time we should dig in to keep CI green |
@winkerVSbecks also it looks like there are some CSS regressions in Chromatic. Can you please take a look? |
@shilman they were all green then I noticed that a few of the examples didn't have addon-highlight installed. I installed and pushed and now everything breaks. I'm not sure why. I'll check chromatic too |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job @winkerVSbecks and thanks for your patience on this!
What I did
Extracted the highlight API into an own addon and added it to Essentials.
The highlight functionality started in the a11y addon but is now being used by interactions too. Extracting and documenting it will make it easier to others to use it too.
I had to update a few snapshot tests since
a11yHighlight.js
was removed as it's no longer required.How to test
If your answer is yes to any of these, please make sure to include it in your PR.