Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tailwindlabs/headlessui
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: @headlessui/[email protected]
Choose a base ref
...
head repository: tailwindlabs/headlessui
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: @headlessui/[email protected]
Choose a head ref
  • 14 commits
  • 18 files changed
  • 3 contributors

Commits on May 8, 2024

  1. sync with 1.x branch

    RobinMalfait committed May 8, 2024
    Configuration menu
    Copy the full SHA
    35e7cbb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    031b39d View commit details
    Browse the repository at this point in the history

Commits on May 10, 2024

  1. 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
    thecrypticace authored May 10, 2024
    Configuration menu
    Copy the full SHA
    4eff138 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. Configuration menu
    Copy the full SHA
    ea65164 View commit details
    Browse the repository at this point in the history
  2. Use same tense

    reinink authored May 13, 2024
    Configuration menu
    Copy the full SHA
    3407625 View commit details
    Browse the repository at this point in the history
  3. Update changelog

    reinink authored May 13, 2024
    Configuration menu
    Copy the full SHA
    300e9eb View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. 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
    RobinMalfait authored May 21, 2024
    Configuration menu
    Copy the full SHA
    045f2bc View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. 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.
    RobinMalfait authored May 22, 2024
    Configuration menu
    Copy the full SHA
    7fcb410 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. Mark SwitchGroup as deprecated, prefer Field instead (#3232)

    * mark `SwitchGroup` as deprecated
    
    Also updated the `Switch.Group` message to also prefer the `<Field>`
    component.
    
    * update changelog
    RobinMalfait authored May 23, 2024
    Configuration menu
    Copy the full SHA
    b478189 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2024

  1. 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
    RobinMalfait authored May 24, 2024
    Configuration menu
    Copy the full SHA
    b822c8a View commit details
    Browse the repository at this point in the history
  2. 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
    RobinMalfait authored May 24, 2024
    Configuration menu
    Copy the full SHA
    c2754bc View commit details
    Browse the repository at this point in the history
  3. 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
    RobinMalfait authored May 24, 2024
    Configuration menu
    Copy the full SHA
    8c3499c View commit details
    Browse the repository at this point in the history
  4. Use native fieldset instead of div 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
    RobinMalfait authored May 24, 2024
    Configuration menu
    Copy the full SHA
    f740050 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7be23e5 View commit details
    Browse the repository at this point in the history
Loading