@carto/meridian-ds 1.4.3-alpha-codemirror.7 → 1.4.3-alpha-icons-shapes.1

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
@@ -2,6 +2,7 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - Fix Icon shapes size [#194](https://github.com/CartoDB/meridian-ds/pull/194)
5
6
  - New CodeAreaField & CodeAreaDialog components [#175](https://github.com/CartoDB/meridian-ds/pull/175)
6
7
  - New CopiableComponent component [#187](https://github.com/CartoDB/meridian-ds/pull/187)
7
8
  - Expose OrderTypes enum in widgets [#192](https://github.com/CartoDB/meridian-ds/pull/192)
@@ -520,8 +520,13 @@ const dataDisplayOverrides = {
520
520
  // Svg Icons
521
521
  MuiSvgIcon: {
522
522
  styleOverrides: {
523
- root: () => ({
524
- fontSize: TablePaginationActions.ICON_SIZE_MEDIUM
523
+ root: ({ theme: theme2 }) => ({
524
+ fontSize: TablePaginationActions.ICON_SIZE_MEDIUM,
525
+ // Force the size of the inner shapes to match the icon size
526
+ "& rect, & circle, & polygon": {
527
+ width: theme2.spacing(2),
528
+ height: theme2.spacing(2)
529
+ }
525
530
  }),
526
531
  fontSizeSmall: () => ({
527
532
  fontSize: TablePaginationActions.ICON_SIZE_SMALL
@@ -520,8 +520,13 @@ const dataDisplayOverrides = {
520
520
  // Svg Icons
521
521
  MuiSvgIcon: {
522
522
  styleOverrides: {
523
- root: () => ({
524
- fontSize: ICON_SIZE_MEDIUM
523
+ root: ({ theme: theme2 }) => ({
524
+ fontSize: ICON_SIZE_MEDIUM,
525
+ // Force the size of the inner shapes to match the icon size
526
+ "& rect, & circle, & polygon": {
527
+ width: theme2.spacing(2),
528
+ height: theme2.spacing(2)
529
+ }
525
530
  }),
526
531
  fontSizeSmall: () => ({
527
532
  fontSize: ICON_SIZE_SMALL
@@ -1 +1 @@
1
- {"version":3,"file":"data-display.d.ts","sourceRoot":"","sources":["../../../../../src/theme/sections/components/data-display.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAkBxD,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CA0iB3D,CAAA"}
1
+ {"version":3,"file":"data-display.d.ts","sourceRoot":"","sources":["../../../../../src/theme/sections/components/data-display.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAkBxD,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,CAgjB3D,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carto/meridian-ds",
3
- "version": "1.4.3-alpha-codemirror.7",
3
+ "version": "1.4.3-alpha-icons-shapes.1",
4
4
  "description": "CARTO Meridian Design System",
5
5
  "type": "module",
6
6
  "scripts": {