Skip to content

Commit

Permalink
SOV-3435: vertical tab mobile props update (#668)
Browse files Browse the repository at this point in the history
* feat: vertical tab mobile props update

* Create grumpy-cooks-hug.md
  • Loading branch information
Rickk137 authored Nov 1, 2023
1 parent 1a88b91 commit 671278f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/grumpy-cooks-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sovryn/ui": patch
---

SOV-3435: Vertical tab mobile custom classname
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ export const VerticalTabItem: FC<VerticalTabsItemButtonProps> = ({
>
{icon && <span className={styles.icon}> {icon} </span>}
<div className={className}>
<Heading type={HeadingType.h2}>{label}</Heading>
<Heading className={styles.heading} type={HeadingType.h2}>
{label}
</Heading>
{infoText && <Paragraph className={styles.info}>{infoText}</Paragraph>}
</div>
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ Basic.args = {
Tab 3 Content
</>
),
className: 'h-20',
},
{
label: 'Tab4 ',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export type VerticalTabsMobileItem = {
infoText?: ReactNode;
disabled?: boolean;
dataAttribute?: string;
className?: string;
};

export type VerticalTabMobileItemButtonProps = VerticalTabsMobileItem & {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React, { FC } from 'react';

import classNames from 'classnames';

import { applyDataAttr } from '../../../utils';
import { VerticalTabMobileItemButtonProps } from '../VerticalTabsMobile.types';
import styles from './VerticalTabMobileItem.module.css';
Expand All @@ -10,9 +12,10 @@ export const VerticalTabMobileItem: FC<VerticalTabMobileItemButtonProps> = ({
infoText,
dataAttribute,
onClick,
className,
}) => (
<button
className={styles.button}
className={classNames(styles.button, className)}
disabled={disabled}
{...applyDataAttr(dataAttribute)}
onClick={onClick}
Expand Down

0 comments on commit 671278f

Please sign in to comment.