7.9.1

mantinedev/mantine7.9.1May 8, 2024by rtivital

AI Summary

A patch release focusing on bug fixes for core components, hooks, and styling issues. Fixes include theme.scale application, Next.js compatibility for virtualColor, and Modal onClose logic.

Key Highlights

  • Fixed `theme.scale` being ignored in Input, Paper, and Table border styles
  • Fixed `virtualColor` function requiring `use client` in Next.js
  • Fixed NumberInput incorrect `allowNegative` handling with arrows
  • Fixed Modal `onClose` being called when modal is not opened
  • Fixed incorrect `aria-label` handling in Select and Autocomplete

Full Release Notes

## What's Changed
- `[@mantine/core]` Fix `theme.scale` being ignored in Input, Paper and Table border styles
- `[@mantine/core]` Fix `virtualColor` function requring `use client` in Next.js
- `[@mantine/core]` FloatingIndicator: Fix incorrect resize observer logic (#6129)
- `[@mantine/core]` NumberInput: Fix incorrect `allowNegative` handling with up/down arrows (#6170)
- `[@mantine/core]` Fix `error={true}` prop set on Checkbox, Radio and Switch rendering unxpected error element with margin
- `[@mantine/core]` SegmentedControl: Fix `theme.primaryColor` not being respected in the focus ring styles
- `[@mantine/core]` CloseButton: Fix incorrect specificity of some selectors
- `[@mantine/core]` Fix incorrect `aria-label` handling in Select, Autocomplete, MultiSelect and TagsInputs components (#6123)
- `[@mantine/core]` Modal: Prevent `onClose` from being called when modal is not opened (#6156)
- `[@mantine/core]` PasswordInput: Fix duplicated password visibility icon in Edge browser (#6126)
- `[@mantine/hooks]` use-hash: Fix hash value not being updated correctly (#6145)
- `[@mantine/emotion]` Fix incorrect transform logic that was causing extra hooks to render (#6159)

## New Contributors
* @lachtanek made their first contribution in https://github.com/mantinedev/mantine/pull/6145
* @hsskey made their first contribution in https://github.com/mantinedev/mantine/pull/6156
* @ataldev made their first contribution in https://github.com/mantinedev/mantine/pull/6198
* @OliverWales made their first contribution in https://github.com/mantinedev/mantine/pull/6188
* @AustinWildgrube made their first contribution in https://github.com/mantinedev/mantine/pull/6170
* @theca11 made their first contribution in https://github.com/mantinedev/mantine/pull/6178

**Full Changelog**: https://github.com/mantinedev/mantine/compare/7.9.0...7.9.1