-
-
Notifications
You must be signed in to change notification settings - Fork 817
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
feat(details): use details and summary html tag to enable in browser … #1470
feat(details): use details and summary html tag to enable in browser … #1470
Conversation
@daKmoR is attempting to deploy a commit to the Font Awesome Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
1c83e2e
to
b2f36da
Compare
@claviska that should be ready to me reviewed/merged 👍 |
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.
This is awesome! Thanks for taking a stab at making this more semantic. The only thing I'm noticing is that we may have a problem with the initial open state:
We should probably fix that and add a test. If you don't want to write the test, we'll be happy to handle it on our side.
Other than that, this seems to work perfectly!
strange - I explicitly fixed this... and it works fine in my chrome (v115), arc (v115) and safari (16.5.2) I can add a test no worries 👍 PS: just noticed a small styling issue with safari - will fix
nice 💪 |
b2f36da
to
da0b0a2
Compare
fixed the Safari styling 💪 and we already have a test for the opening... so I can't reproduce what you see 😅 it('should be visible with the open attribute', async () => {
const el = await fixture<SlDetails>(html`
<sl-details open>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.
</sl-details>
`);
const body = el.shadowRoot!.querySelector<HTMLElement>('.details__body')!;
expect(parseInt(getComputedStyle(body).height)).to.be.greaterThan(0);
}); |
I noticed it in Chrome. Looking again, it behaves correctly now. (I may have been seeing a cached version.)
Thanks! 🙌 |
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.
Thank you!
# [1.7.0-next.1](v1.6.0...v1.7.0-next.1) (2023-08-04) ### Bug Fixes * valueAsDate now falls back to native implementation ([shoelace-style#1399](https://github.com/circular-o/circular/issues/1399)) ([a4f0ae9](a4f0ae9)) ### Features * **details:** use details and summary html tag to enable in browser searching ([shoelace-style#1470](https://github.com/circular-o/circular/issues/1470)) ([89f0f4a](89f0f4a)) * Syncs Shoelace next branch ([3b66b01](3b66b01)) * Syncs Shoelace next branch ([0999b51](0999b51)) * Syncs Shoelace next branch ([5e50390](5e50390)) ### Reverts * Revert "Move keydown handler for sl-drawer back to base div (shoelace-style#1459)" ([f954233](f954233)), closes [shoelace-style#1459](https://github.com/circular-o/circular/issues/1459)
# [1.7.0](v1.6.0...v1.7.0) (2023-08-04) ### Bug Fixes * valueAsDate now falls back to native implementation ([shoelace-style#1399](https://github.com/circular-o/circular/issues/1399)) ([a4f0ae9](a4f0ae9)) ### Features * **details:** use details and summary html tag to enable in browser searching ([shoelace-style#1470](https://github.com/circular-o/circular/issues/1470)) ([89f0f4a](89f0f4a)) * Syncs Shoelace next branch ([3b66b01](3b66b01)) * Syncs Shoelace next branch ([0999b51](0999b51)) * Syncs Shoelace next branch ([5e50390](5e50390)) ### Reverts * Revert "Move keydown handler for sl-drawer back to base div (shoelace-style#1459)" ([f954233](f954233)), closes [shoelace-style#1459](https://github.com/circular-o/circular/issues/1459)
…searching
What I did
<details>
&<summary>
<details>
to the web components (as browser search will only open the native details and notsl-details
There are currently failing tests because of the removal of
hidden
...If the idea sounds good then I can clean that up.
Before
After