Skip to content

Commit

Permalink
Remove Tailwind classes from components (#2356)
Browse files Browse the repository at this point in the history
* Updated utility classes

* Replaced Tailwind classes with NeetoUI classes

* Replaced w-72 Tailwind utility class
  • Loading branch information
praveen-murali-ind authored Oct 17, 2024
1 parent 9ad8c23 commit 7272eb3
Show file tree
Hide file tree
Showing 5 changed files with 314 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/Label/HelpContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const HelpContent = ({ helpIconProps }) => {
<>
<HelpIcon {...otherHelpIconProps} ref={popoverReferenceElement} />
<Popover reference={popoverReferenceElement} {...otherPopoverProps}>
<div className="flex flex-col">
<div className="neeto-ui-flex neeto-ui-flex-col">
{title && (
<Popover.Title
data-cy="help-popover-title"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ const MenuList = props => {
{props.children}
{hasMore && (
<div
className="flex w-full items-center justify-center py-3"
className="neeto-ui-flex neeto-ui-w-full neeto-ui-items-center neeto-ui-justify-center neeto-ui-py-3"
data-testid="loader"
ref={loaderRef}
>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Table/components/HeaderCell/HeaderCellMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const HeaderCellMenu = ({
}}
>
<Menu
className="cursor-auto"
className="neeto-ui-cursor-auto"
onMouseDown={event => event.preventDefault()}
>
{isSortable && (
Expand Down Expand Up @@ -116,7 +116,7 @@ const HeaderCellMenu = ({
{getLocale(i18n, t, "neetoui.table.columnInfo")}
</MenuItem.Button>
<Popover
className="cursor-auto"
className="neeto-ui-cursor-auto"
hideOnClick={false}
interactiveDebounce={20}
offset={[0, 15]}
Expand All @@ -126,7 +126,7 @@ const HeaderCellMenu = ({
>
{columnTitle && <Popover.Title>{columnTitle}</Popover.Title>}
<Typography
className="w-72 max-w-full whitespace-normal normal-case"
className="neeto-ui-whitespace-normal neeto-ui-normal-case neeto-ui-max-w-full neeto-ui-table__column-description"
lineHeight="normal"
style="body2"
weight="normal"
Expand Down
4 changes: 4 additions & 0 deletions src/styles/components/_table-overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,7 @@
}
}
}

.neeto-ui-table__column-description{
width: 288px;
}
Loading

0 comments on commit 7272eb3

Please sign in to comment.