@elementor/editor-controls 4.4.0-1064 → 4.4.0-1066

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/dist/index.js CHANGED
@@ -8415,11 +8415,14 @@ var InlineEditorToolbar = ({
8415
8415
  boxShadow: "none",
8416
8416
  borderWidth: "0",
8417
8417
  borderBottom: "1px solid",
8418
- borderBottomColor: "grey.200",
8418
+ borderBottomColor: (theme) => theme.palette.text.secondary,
8419
8419
  borderRadius: "0",
8420
8420
  position: "absolute",
8421
8421
  top: "0",
8422
- left: "0"
8422
+ left: "0",
8423
+ "&, & .MuiIconButton-root, & .MuiToggleButton-root": {
8424
+ color: (theme) => theme.palette.text.primary
8425
+ }
8423
8426
  }
8424
8427
  }
8425
8428
  },
@@ -8449,8 +8452,7 @@ var InlineEditorToolbar = ({
8449
8452
  width: "100%",
8450
8453
  "& svg": {
8451
8454
  width: "0.7rem",
8452
- height: "0.7rem",
8453
- fill: "black"
8455
+ height: "0.7rem"
8454
8456
  }
8455
8457
  }
8456
8458
  }
@@ -8579,29 +8581,29 @@ var InlineEditingControl = createControl(({ sx, attributes, props, context: { el
8579
8581
  {
8580
8582
  editor,
8581
8583
  elementId,
8582
- sx: {
8584
+ sx: (theme) => ({
8583
8585
  boxShadow: "none",
8584
8586
  border: "1px solid",
8585
- borderColor: "grey.200",
8587
+ borderColor: theme.palette.text.secondary,
8586
8588
  mb: 0.5
8587
- },
8589
+ }),
8588
8590
  inControlPanel: true
8589
8591
  }
8590
8592
  ), /* @__PURE__ */ React117.createElement(
8591
8593
  import_ui101.Box,
8592
8594
  {
8593
- sx: {
8595
+ sx: (theme) => ({
8594
8596
  p: 0.8,
8595
8597
  border: "1px solid",
8596
- borderColor: "grey.200",
8598
+ borderColor: theme.palette.text.secondary,
8597
8599
  borderRadius: "8px",
8598
8600
  transition: "border-color .2s ease, box-shadow .2s ease",
8599
8601
  "&:hover": {
8600
- borderColor: "black"
8602
+ borderColor: theme.palette.text.primary
8601
8603
  },
8602
8604
  "&:focus-within": {
8603
- borderColor: "black",
8604
- boxShadow: "0 0 0 1px black"
8605
+ borderColor: theme.palette.text.primary,
8606
+ boxShadow: `0 0 0 1px ${theme.palette.text.primary}`
8605
8607
  },
8606
8608
  "& .ProseMirror:focus": {
8607
8609
  outline: "none"
@@ -8628,7 +8630,7 @@ var InlineEditingControl = createControl(({ sx, attributes, props, context: { el
8628
8630
  all: "unset"
8629
8631
  },
8630
8632
  ...sx
8631
- },
8633
+ }),
8632
8634
  ...attributes,
8633
8635
  ...props
8634
8636
  },