@jsenv/navi 0.25.8 → 0.25.9

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.
@@ -21889,6 +21889,8 @@ const useAccentColorAttributes = (
21889
21889
  return undefined;
21890
21890
  }
21891
21891
  let elementToCheck = el;
21892
+ elementSelector =
21893
+ elementSelector || el.getAttribute("data-visual-selector");
21892
21894
  if (elementSelector) {
21893
21895
  elementToCheck = el.querySelector(elementSelector);
21894
21896
  if (!elementToCheck) {
@@ -22803,7 +22805,10 @@ const ButtonUI = props => {
22803
22805
  innerTarget = target === undefined ? isSameSite ? undefined : "_blank" : target;
22804
22806
  innerRel = rel === undefined ? isSameSite ? undefined : "noopener noreferrer" : rel;
22805
22807
  }
22806
- useAccentColorAttributes(ref, null);
22808
+ const visualSelector = ".navi_button_content";
22809
+ useAccentColorAttributes(ref, null, {
22810
+ elementSelector: visualSelector
22811
+ });
22807
22812
  const renderButtonContent = buttonProps => {
22808
22813
  return jsxs(Text, {
22809
22814
  ...buttonProps,
@@ -22857,7 +22862,7 @@ const ButtonUI = props => {
22857
22862
  ":disabled": innerDisabled,
22858
22863
  ":-navi-loading": innerLoading
22859
22864
  },
22860
- visualSelector: ".navi_button_content",
22865
+ visualSelector: visualSelector,
22861
22866
  hasChildFunction: true,
22862
22867
  children: [jsx(LoaderBackground, {
22863
22868
  loading: innerLoading,