Skip to content

Commit

Permalink
feat: Change style for taxonomy tags count
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuf-musleh committed Apr 8, 2024
1 parent f5b952a commit c926b37
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/content-tags-drawer/ContentTagsCollapsible.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import {
Collapsible,
Button,
Spinner,
Chip,
} from '@openedx/paragon';
import { Tag } from '@openedx/paragon/icons';
import classNames from 'classnames';

Check failure on line 15 in src/content-tags-drawer/ContentTagsCollapsible.jsx

View workflow job for this annotation

GitHub Actions / tests

'classNames' is defined but never used
import { SelectableBox } from '@edx/frontend-lib-content-components';
import { useIntl } from '@edx/frontend-platform/i18n';
Expand Down Expand Up @@ -445,16 +447,14 @@ const ContentTagsCollapsible = ({
)}
</div>
</Collapsible>
<div className="d-flex">
<Badge
variant="light"
pill
className={classNames('align-self-start', 'mt-3', {
invisible: contentTagsCount === 0,
})}
<div className="d-flex align-items-start pt-2.5 taxonomy-tags-count-chip">
<Chip
iconBefore={Tag}
iconBeforeAlt="icon-before"
disabled={contentTagsCount === 0}
>
{contentTagsCount}
</Badge>
</Chip>
</div>
</div>
);
Expand Down
4 changes: 4 additions & 0 deletions src/content-tags-drawer/ContentTagsCollapsible.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@
color: white !important;
}
}

.taxonomy-tags-count-chip > .pgn__chip {
background: none;
}

0 comments on commit c926b37

Please sign in to comment.