Skip to content

Commit

Permalink
ops: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adarshpastakia committed Oct 22, 2024
1 parent af86c8e commit 984d591
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/components/breadcrumbs/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
import classNames from "classnames";
import { Children, useMemo } from "react";
import { type AriaProps, type ChildrenProp, type CssProp } from "../../types";
import { Link } from "../../typography/Link";
import { Anchor } from "../../typography/Anchor";
import { Dropdown } from "../dropdown/Dropdown";
import classes from "./Breadcrumbs.module.css";

export interface BreadcrumbProps
extends CssProp,
AriaProps,
ChildrenProp<typeof Link> {
ChildrenProp<typeof Anchor> {
/**
* breadcrumb styling
*/
Expand Down Expand Up @@ -85,7 +85,7 @@ export const Breadcrumbs = ({
{overflow && (
<Dropdown closeOnClick showArrow>
<li className={classes.breadcrumbLink} data-separator={separator}>
<Link>...</Link>
<Anchor>...</Anchor>
</li>
<div
data-color={color}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ exports[`Button should render action message 1`] = `"<div></div><div></div><div>

exports[`Button should render action message via prop 1`] = `"<div></div><div></div><div></div><div></div><div></div><div></div><div tabindex="0"></div><div></div><div></div><div><div class="flex gap-2 items-center p-4"><div class="buttonWrapper relative align-text-top select-none focus-within:z-1 inline-block" data-ref="button"><button role="button" class="button pointer-events-auto cursor-pointer select-none flex flex-nowrap w-full h-full items-center border-0 -outline-offset-1 justify-center max-w-72 p-0 font-sans font-medium appearance-none focus-visible:ring-2 focus-visible:ring-offset-2 buttonInner rounded-full" type="button" tabindex="0" data-inner-clickable="true" data-color="primary"><label class="buttonLabel truncate" data-colored-icon="false">Click Me</label></button></div></div></div>"`;

exports[`Button should render alt icon 1`] = `"<div></div><div></div><div><div class="flex gap-2 items-center p-4"><div class="buttonWrapper relative align-text-top select-none focus-within:z-1 inline-block" data-ref="button"><button role="button" class="button pointer-events-auto cursor-pointer select-none flex flex-nowrap w-full h-full items-center border-0 -outline-offset-1 justify-center max-w-72 p-0 font-sans font-medium appearance-none focus-visible:ring-2 focus-visible:ring-offset-2 buttonInner spinOnHover" type="button" tabindex="0" data-inner-clickable="true" data-color="primary"><dfn data-align="start" role="presentation" class="icon buttonIcon select-none overflow-hidden inline-block box-content leading-none not-italic text-center rounded" data-clickable="false"><i class="mdi mdi-bell"></i></dfn><dfn role="presentation" class="icon altIcon select-none overflow-hidden inline-block box-content leading-none not-italic text-center rounded" data-flip="true" data-clickable="false"><svg viewBox="0 0 24 24"><path fill="currentColor" d="M6.173 7.29l5.827 5.827 5.827-5.827 1.79 1.803-7.617 7.617-7.617-7.617 1.79-1.803z"></path></svg></dfn></button></div></div></div>"`;
exports[`Button should render alt icon 1`] = `"<div></div><div></div><div><div class="flex gap-2 items-center p-4"><div class="buttonWrapper relative align-text-top select-none focus-within:z-1 inline-block" data-ref="button"><button role="button" class="button pointer-events-auto cursor-pointer select-none flex flex-nowrap w-full h-full items-center border-0 -outline-offset-1 justify-center max-w-72 p-0 font-sans font-medium appearance-none focus-visible:ring-2 focus-visible:ring-offset-2 buttonInner spinOnHover" type="button" tabindex="0" data-inner-clickable="true" data-color="primary"><dfn data-align="start" role="presentation" class="icon buttonIcon select-none overflow-hidden inline-block box-content leading-none not-italic text-center rounded" data-clickable="false" data-inner-clickable="false"><i class="mdi mdi-bell"></i></dfn><dfn role="presentation" class="icon altIcon select-none overflow-hidden inline-block box-content leading-none not-italic text-center rounded" data-flip="true" data-clickable="false" data-inner-clickable="false"><svg viewBox="0 0 24 24"><path fill="currentColor" d="M6.173 7.29l5.827 5.827 5.827-5.827 1.79 1.803-7.617 7.617-7.617-7.617 1.79-1.803z"></path></svg></dfn></button></div></div></div>"`;

exports[`Button should render icon only 1`] = `"<div></div><div><div class="flex gap-2 items-center p-4"><div class="buttonWrapper relative align-text-top select-none focus-within:z-1 inline-block" data-ref="button"><button role="button" class="button pointer-events-auto cursor-pointer select-none flex flex-nowrap w-full h-full items-center border-0 -outline-offset-1 justify-center max-w-72 p-0 font-sans font-medium appearance-none focus-visible:ring-2 focus-visible:ring-offset-2 buttonInner" type="button" tabindex="0" data-inner-clickable="true" data-color="primary"><dfn data-align="start" role="presentation" class="icon buttonIcon select-none overflow-hidden inline-block box-content leading-none not-italic text-center rounded" data-clickable="false"><i class="mdi mdi-bell"></i></dfn></button></div></div></div>"`;
exports[`Button should render icon only 1`] = `"<div></div><div><div class="flex gap-2 items-center p-4"><div class="buttonWrapper relative align-text-top select-none focus-within:z-1 inline-block" data-ref="button"><button role="button" class="button pointer-events-auto cursor-pointer select-none flex flex-nowrap w-full h-full items-center border-0 -outline-offset-1 justify-center max-w-72 p-0 font-sans font-medium appearance-none focus-visible:ring-2 focus-visible:ring-offset-2 buttonInner" type="button" tabindex="0" data-inner-clickable="true" data-color="primary"><dfn data-align="start" role="presentation" class="icon buttonIcon select-none overflow-hidden inline-block box-content leading-none not-italic text-center rounded" data-clickable="false" data-inner-clickable="false"><i class="mdi mdi-bell"></i></dfn></button></div></div></div>"`;

exports[`Button should render label only 1`] = `"<div><div class="flex gap-2 items-center p-4"><div class="buttonWrapper relative align-text-top select-none focus-within:z-1 inline-block" data-ref="button"><button role="button" class="button pointer-events-auto cursor-pointer select-none flex flex-nowrap w-full h-full items-center border-0 -outline-offset-1 justify-center max-w-72 p-0 font-sans font-medium appearance-none focus-visible:ring-2 focus-visible:ring-offset-2 buttonInner" type="button" tabindex="0" data-inner-clickable="true" data-color="primary"><label class="buttonLabel truncate" data-colored-icon="false">Click Me</label></button></div></div></div>"`;

Expand Down

0 comments on commit 984d591

Please sign in to comment.