-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Comparing changes
Open a pull request
base repository: tailwindlabs/headlessui
base: @headlessui/[email protected]
head repository: tailwindlabs/headlessui
compare: @headlessui/[email protected]
- 14 commits
- 18 files changed
- 3 contributors
Commits on May 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 35e7cbb - Browse repository at this point
Copy the full SHA 35e7cbbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 031b39d - Browse repository at this point
Copy the full SHA 031b39dView commit details
Commits on May 10, 2024
-
Don’t set a focus fallback for Dialog’s in demo mode (#3194)
* Don’t set a focus fallback for Dialog’s in demo mode * Update changelog
Configuration menu - View commit details
-
Copy full SHA for 4eff138 - Browse repository at this point
Copy the full SHA 4eff138View commit details
Commits on May 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ea65164 - Browse repository at this point
Copy the full SHA ea65164View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3407625 - Browse repository at this point
Copy the full SHA 3407625View commit details -
Configuration menu - View commit details
-
Copy full SHA for 300e9eb - Browse repository at this point
Copy the full SHA 300e9ebView commit details
Commits on May 21, 2024
-
Ensure page doesn't scroll down when pressing
Escape
to close the `……Dialog` component (#3218) * ensure we blur the `document.activeElement` when pressing `Escape` * update changelog
Configuration menu - View commit details
-
Copy full SHA for 045f2bc - Browse repository at this point
Copy the full SHA 045f2bcView commit details
Commits on May 22, 2024
-
do not apply
aria-modal
in demo mode (#3227)When you have a `role="dialog"` and an `aria-modal="true"` at the same time, then Safari will focus the first focusable element inside the dialog. This is not ideal, because in demo mode this means that the focus is moved around to various DOM elements. This commit ensures that the `aria-modal` is not applied when demo mode is enabled to prevent that behavior in Safari.
Configuration menu - View commit details
-
Copy full SHA for 7fcb410 - Browse repository at this point
Copy the full SHA 7fcb410View commit details
Commits on May 23, 2024
-
Mark
SwitchGroup
as deprecated, preferField
instead (#3232)* mark `SwitchGroup` as deprecated Also updated the `Switch.Group` message to also prefer the `<Field>` component. * update changelog
Configuration menu - View commit details
-
Copy full SHA for b478189 - Browse repository at this point
Copy the full SHA b478189View commit details
Commits on May 24, 2024
-
Fix crash when toggling between
virtual
and non-virtual mode in `Co……mbobox` component (#3236) * ensure we correctly merge the `virtual` configuration * use more generic `UpdateVirtualOptions` This way we can passthrough the `disabled` function as well. * properly handle re-use of `disabled` function * use same order in objects * cleanup `!` and `?` if we already know we are in `virtual` mode * directly enable virtual mode in state if previously we weren't using virtual mode * update changelog
Configuration menu - View commit details
-
Copy full SHA for b822c8a - Browse repository at this point
Copy the full SHA b822c8aView commit details -
Ensure tabbing to a portalled
<PopoverPanel>
component moves focus ……inside (without using `<PortalGroup>`) (#3239) * ensure we allow focus in the focus sentinel button We already checked this button when inside of a `PopoverGroup`, but we didn't when you weren't using a `PopoverGroup` component. * add test * update changelog
Configuration menu - View commit details
-
Copy full SHA for c2754bc - Browse repository at this point
Copy the full SHA c2754bcView commit details -
Only handle form reset when
defaultValue
is used (#3240)* add `useDefaultValue` hook This allows us to have a guaranteed `default value` that never changes unless the component re-mounts. Since the hook returns a stable value, we can safely include it in dependency arrays of certain hooks. Before this change, including this is in the dependency arrays it would cause a trigger or change of the hook when the `defaultValue` changes but we never want that. * do not handle `reset` when no `defaultValue` or `defaultChecked` was provided If a `defaultValue` is provided, then the reset will be handled and the `onChange` will be called with this value. If no `defaultValue` was provided, we won't handle the `reset`, otherwise we would call the `onChange` with `undefined` which is incorrect. * update changelog
Configuration menu - View commit details
-
Copy full SHA for 8c3499c - Browse repository at this point
Copy the full SHA 8c3499cView commit details -
Use native
fieldset
instead ofdiv
by default for<Fieldset />
……component (#3237) * improve TypeScript types for `Fieldset` component * use `fieldset` instead of `div` by default * only apply `role="group"` when not using a native `fieldset` * apply `disabled` attribute This is necessary if we want to make use of the default fieldset tag (which also disables native form elements) * adjust tests reflecting new changes * conditionally apply props based on rendered element * add `useResolvedTag` hook This allows us to compute the `tag` name of a component. We can use a shortcut based on the `props.as` and/or the `DEFAULT_XXX_TAG` of a component. If this is not known/passed, then we compute it based on the `ref` instead which requires an actual re-render. * use `useResolvedTag` hook * reflect change in `Field` related test * update changelog * inline variable
Configuration menu - View commit details
-
Copy full SHA for f740050 - Browse repository at this point
Copy the full SHA f740050View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7be23e5 - Browse repository at this point
Copy the full SHA 7be23e5View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff @headlessui/[email protected]...@headlessui/[email protected]