diff --git a/packages/dnb-eufemia/src/components/breadcrumb/Breadcrumb.tsx b/packages/dnb-eufemia/src/components/breadcrumb/Breadcrumb.tsx index 4d4d17c2adc..790de5f05ee 100644 --- a/packages/dnb-eufemia/src/components/breadcrumb/Breadcrumb.tsx +++ b/packages/dnb-eufemia/src/components/breadcrumb/Breadcrumb.tsx @@ -11,7 +11,6 @@ import Section, { import Button from '../button/Button' // Shared -import { useMediaQuery } from '../../shared' import Context from '../../shared/Context' import type { SpacingProps } from '../../shared/types' import type { SkeletonShow } from '../skeleton/Skeleton' @@ -174,15 +173,11 @@ const Breadcrumb = (localProps: BreadcrumbProps & SpacingProps) => { const spacingClasses = createSpacingClasses(props) const [isCollapsed, setCollapse] = useState(overrideIsCollapsed) - const isSmallScreen = useMediaQuery({ - matchOnSSR: true, - when: { max: 'medium' }, - }) let currentVariant = variant if (!variant) { if (items || data) { - currentVariant = isSmallScreen ? 'collapse' : 'multiple' + currentVariant = 'multiple' } else { currentVariant = 'single' } @@ -201,6 +196,7 @@ const Breadcrumb = (localProps: BreadcrumbProps & SpacingProps) => { aria-label={convertJsxToString(navText)} className={classnames( 'dnb-breadcrumb', + `dnb-breadcrumb--variant-${currentVariant}`, skeletonClasses, spacingClasses, className @@ -212,23 +208,7 @@ const Breadcrumb = (localProps: BreadcrumbProps & SpacingProps) => { style_type={styleType || 'transparent'} spacing={innerSpacing} > - {currentVariant === 'collapse' && ( -