Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ export default function DBAccordion(props: DBAccordionProps) {
}, [state.openItems]);

return (
<div ref={ref} class={cls('db-accordion', props.className)}>
<div
ref={ref}
id={props.id}
class={cls('db-accordion', props.className)}>
<Show when={state.stylePath}>
<link rel="stylesheet" href={state.stylePath} />
</Show>
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/components/alert/alert.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export default function DBAlert(props: DBAlertProps) {
return (
<div
ref={component}
id={props.id}
class={cls('db-alert', props.className)}
aria-live={props.ariaLive}
data-variant={props.variant}
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/components/badge/badge.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default function DBBadge(props: DBBadgeProps) {
return (
<span
ref={component}
id={props.id}
class={cls('db-badge', props.className)}
data-variant={props.variant}
data-size={props.size}
Expand Down
3 changes: 2 additions & 1 deletion packages/components/src/components/brand/brand.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ export default function DBBrand(props: DBBrandProps) {
// jscpd:ignore-end

return (
<div ref={component} class={cls('db-brand', props.className)}>
<div ref={component}
id={props.id} class={cls('db-brand', props.className)}>
<Show when={state.stylePath}>
<link rel="stylesheet" href={state.stylePath} />
</Show>
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/components/card/card.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default function DBCard(props: DBCardProps) {
return (
<div
ref={component}
id={props.id}
class={cls('db-card', props.className)}
data-variant={props.variant}
data-color-variant={props.colorVariant}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default function DBDivider(props: DBDividerProps) {
return (
<div
ref={component}
id={props.id}
data-margin={props.margin}
data-variant={props.variant}
data-emphasis={props.emphasis}
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/components/icon/icon.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default function DBIcon(props: DBIconProps) {
return (
<span
ref={component}
id={props.id}
class={cls('db-icon', props.className)}
data-icon={props.icon}
aria-hidden="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export default function DBInfotext(props: DBInfotextProps) {
return (
<span
ref={component}
id={props.id}
class={cls('db-infotext', props.className)}
title={props.title}
data-icon={props.icon}
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/components/link/link.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export default function DBLink(props: DBLinkProps) {
return (
<a
ref={component}
id={props.id}
class={cls('db-link', props.className)}
href={props.href}
title={props.title}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ export default function DBMainNavigation(props: DBMainNavigationProps) {
// jscpd:ignore-end

return (
<nav ref={component} class={cls('db-main-navigation', props.className)}>
<nav
ref={component}
id={props.id}
class={cls('db-main-navigation', props.className)}>
<Show when={state.stylePath}>
<link rel="stylesheet" href={state.stylePath} />
</Show>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export default function DBNavigationItem(props: DBNavigationItemProps) {
return (
<li
ref={component}
id={props.id}
class={cls('db-navigation-item', props.className)}
data-width={props.width}
data-icon={props.icon}
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/components/page/page.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default function DBPage(props: DBPageProps) {
return (
<div
ref={component}
id={props.id}
class={cls('db-page', props.className, {
'fixed-header-footer': props.type === 'fixedHeaderFooter'
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default function DBSection(props: DBSectionProps) {
return (
<section
ref={component}
id={props.id}
className={cls('db-section', props.className)}
data-size={props.size || 'medium'}>
<Show when={state.stylePath}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default function DBTabBar(props: DBTabBarProps) {
return (
<div
ref={component}
id={props.id}
class={cls('cmp-tab-bar', props.className)}
role="tablist">
<Show when={state.stylePath}>
Expand Down
4 changes: 3 additions & 1 deletion packages/components/src/components/tab/tab.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ export default function DBTab(props: DBTabProps) {
// jscpd:ignore-end

return (
<div ref={component} class={cls('db-tab', props.className)}>
<div ref={component}
id={props.id}
class={cls('db-tab', props.className)}>
<Show when={state.stylePath}>
<link rel="stylesheet" href={state.stylePath} />
</Show>
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/components/tag/tag.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export default function DBTag(props: DBTagProps) {
return (
<div
ref={component}
id={props.id}
class={cls('db-tag', props.className)}
tabIndex={state.getTabIndex()}
data-interactive={state.isInteractive()}
Expand Down