@carto/meridian-ds 2.5.2 → 2.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
## 2.0
|
|
6
6
|
|
|
7
|
+
### 2.5.3
|
|
8
|
+
|
|
9
|
+
- Support `tooltipLabel` + `disabled` properties in `FilterDropdown` [#279](https://github.com/CartoDB/meridian-ds/pull/279)
|
|
10
|
+
|
|
7
11
|
### 2.5.2
|
|
8
12
|
|
|
9
13
|
- Rename `useAutocompletion` to `useCodeAreaAutocompletion` [#275](https://github.com/CartoDB/meridian-ds/pull/275)
|
|
@@ -1574,6 +1574,13 @@ const FilterDropdownMenuItem = ({
|
|
|
1574
1574
|
"aria-label": ariaLabel,
|
|
1575
1575
|
"aria-labelledby": menuItemId,
|
|
1576
1576
|
"aria-selected": isSelected,
|
|
1577
|
+
sx: {
|
|
1578
|
+
...disabled && tooltipLabel && {
|
|
1579
|
+
// This ensures the Tooltip is shown when disabled, without wrapping it with a span/div,
|
|
1580
|
+
// otherwise this will invalid from an A11Y perspective plus not navigable through the keyboard
|
|
1581
|
+
pointerEvents: "auto !important"
|
|
1582
|
+
}
|
|
1583
|
+
},
|
|
1577
1584
|
children: [
|
|
1578
1585
|
startAdornment && /* @__PURE__ */ jsxRuntime.jsx(material.ListItemIcon, { children: startAdornment }),
|
|
1579
1586
|
/* @__PURE__ */ jsxRuntime.jsx(
|
package/dist/components/index.js
CHANGED
|
@@ -1574,6 +1574,13 @@ const FilterDropdownMenuItem = ({
|
|
|
1574
1574
|
"aria-label": ariaLabel,
|
|
1575
1575
|
"aria-labelledby": menuItemId,
|
|
1576
1576
|
"aria-selected": isSelected,
|
|
1577
|
+
sx: {
|
|
1578
|
+
...disabled && tooltipLabel && {
|
|
1579
|
+
// This ensures the Tooltip is shown when disabled, without wrapping it with a span/div,
|
|
1580
|
+
// otherwise this will invalid from an A11Y perspective plus not navigable through the keyboard
|
|
1581
|
+
pointerEvents: "auto !important"
|
|
1582
|
+
}
|
|
1583
|
+
},
|
|
1577
1584
|
children: [
|
|
1578
1585
|
startAdornment && /* @__PURE__ */ jsx(ListItemIcon, { children: startAdornment }),
|
|
1579
1586
|
/* @__PURE__ */ jsx(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterDropdownMenuItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/FilterDropdown/FilterDropdownMenuItem.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAA;AAErD,eAAO,MAAM,sBAAsB,4DAMhC,2BAA2B,
|
|
1
|
+
{"version":3,"file":"FilterDropdownMenuItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/FilterDropdown/FilterDropdownMenuItem.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAA;AAErD,eAAO,MAAM,sBAAsB,4DAMhC,2BAA2B,mDA8D7B,CAAA"}
|