@obosbbl/grunnmuren-react 2.0.0-canary.30 → 2.0.0-canary.31
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.mjs +3 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -950,7 +950,8 @@ function Breadcrumb(props, ref) {
|
|
|
950
950
|
children: [
|
|
951
951
|
href ? /*#__PURE__*/ jsx(Link, {
|
|
952
952
|
href: href,
|
|
953
|
-
|
|
953
|
+
// use outline instead of ring for focus marker that can be offset without creating a white background between the focus marker and the element content
|
|
954
|
+
className: "rounded-sm focus:outline-none group-last:no-underline data-[focus-visible]:outline data-[focus-visible]:outline-offset-2 data-[focus-visible]:outline-black",
|
|
954
955
|
children: children
|
|
955
956
|
}) : children,
|
|
956
957
|
/*#__PURE__*/ jsx(ChevronRight, {
|
|
@@ -964,7 +965,7 @@ const _Breadcrumb = /*#__PURE__*/ forwardRef(Breadcrumb);
|
|
|
964
965
|
function Backlink(props, ref) {
|
|
965
966
|
const { className, children, href, withUnderline, ...restProps } = props;
|
|
966
967
|
return /*#__PURE__*/ jsxs(Link, {
|
|
967
|
-
className: cx(className, 'group flex max-w-fit items-center gap-3 rounded-md p-2.5 no-underline focus:outline-none data-[focus-visible]:ring data-[focus-visible]:ring-black'),
|
|
968
|
+
className: cx(className, 'group flex max-w-fit cursor-pointer items-center gap-3 rounded-md p-2.5 no-underline focus:outline-none data-[focus-visible]:ring data-[focus-visible]:ring-black'),
|
|
968
969
|
...restProps,
|
|
969
970
|
ref: ref,
|
|
970
971
|
href: href,
|