7.6.1

mantinedev/mantine7.6.1Feb 27, 2024by rtivital

AI Summary

Addresses accessibility improvements, date picker constraints, and various UI styling bugs.

Key Highlights

  • Switch now uses `role="switch"` for better accessibility compliance.
  • Fixed `minDate` and `maxDate` not being respected in time input for DateTimePicker.
  • Fixed incorrect Escape key handling in Modal, Drawer, and Popover components.
  • Fixed `autoComplete` prop not working in Select component.

Full Release Notes

## What's Changed
- `[@mantine/core]` Fix incorrect focus ring styles in Button.Group and ActionIcon.Group components (#5736)
- `[@mantine/core]` Progress: Fix incorrect border-radius with multiple sections
- `[@mantine/dates]` DateTimePicker: Fix `minDate` and `maxDate` not being respected in time input (#5819)
- `[@mantine/core]` Switch: Use `role="switch"` for better accessibility (#5746)
- `[@mantine/hooks]` use-resize-observer: Fix incorrect ref type (#5780)
- `[@mantine/dates]` Fix `popoverProps.onClose` overriding original component value in DatePickerInput and other similar components (#4105)
- `[@mantine/core]` Fix incorrect Escape key handling in Modal and Drawer components in some cases (#2827)
- `[@mantine/core]` Combobox: Fix incorrect Escape key handling in Modal, Drawer and Popover
- `[@mantine/core]` Transition: Fix transition resolving instantly in some cases (#3126, #5193)
- `[@mantine/core]` Remove loader from the DOM if `loading` prop is not set on ActionIcon and Button components (#5795)
- `[@mantine/hooks]` use-local-storage: Fix inconsistent default value persistence if `getInitialValueInEffect` is set (#5796)
- `[@mantine/core]` Select: Fix `autoComplete` prop not working (#5813)
- `[@mantine/core]` Tabs: Fix incorrect border styles in outline variant
- `[@mantine/core]` Checkbox: Fix incorrect `indeterminate`  + `disabled` styles for outline variant (#5806)
- `[@mantine/core]` SegmentedControl: Fix indicator state not being updated correctly when controlled state changes to a value that is not present in the data array (#5689)
- `[@mantine/core]` Fix incorrect label offset with left label position in Checkbox, Switch and Radio components (#5823)
- `[@mantine/core]` PinInput: Fix updating controlled value to an empty string working incorrectly
- `[@mantine/core]` Menu: Fix incorrect role of dropdown elements

## New Contributors
* @gl3nn made their first contribution in https://github.com/mantinedev/mantine/pull/5689
* @ktunador made their first contribution in https://github.com/mantinedev/mantine/pull/5711
* @snturk made their first contribution in https://github.com/mantinedev/mantine/pull/5819

**Full Changelog**: https://github.com/mantinedev/mantine/compare/7.6.0...7.6.1