George Griffiths

George Griffiths

@griffadev.bsky.social

Software engineer from the UK. React is mid and so are web components

13 followers34 following17 posts

If you have a css reset with this code html { box-sizing: border-box; } *,*:before,*:after { box-sizing: inherit; } It does not work with elements like `<details>`, I guess because of internal shadow dom. But the `<summary>` element will not get the border-box set.

I feel like the native `<details>` element should support `defaultOpen` so you can support use cases like controlling open from the outside but only for the initial render, and open property taking over from then on. This might just be an issue with react not working well with the element tbf.

You are up to date.