Skip to content

Commit

Permalink
Merge pull request #119 from SSWConsulting/make-featured-icon-size-co…
Browse files Browse the repository at this point in the history
…nsistent

Made featured icon size consistent + updated megamenu version
  • Loading branch information
bahjatalaadelssw authored Jan 6, 2025
2 parents 4573530 + 420f9ff commit 22709ec
Show file tree
Hide file tree
Showing 3 changed files with 280 additions and 101 deletions.
4 changes: 3 additions & 1 deletion lib/components/SubMenuGroup/FeaturedCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ const FeaturedCard = (props: FeaturedCardProps) => {
return (
<div className="rounded bg-ssw-black px-4 py-5 text-white hover:bg-ssw-gray">
<div className="inline-flex items-center font-bold">
{props.icon && <MegaIcon icon={props.icon} className="mr-2" />}
{props.icon && (
<MegaIcon icon={props.icon} className="mr-2 size-8 flex-shrink-0" />
)}
{props.title}
</div>
<div className="mt-2 text-sm font-normal">{props.children}</div>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ssw.megamenu",
"version": "4.9.1",
"version": "4.9.2",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
Expand Down Expand Up @@ -67,7 +67,7 @@
"prettier-plugin-tailwindcss": "^0.5.9",
"rollup-plugin-node-externals": "^7.0.1",
"source-map-explorer": "^2.5.3",
"tailwindcss": "^3.3.6",
"tailwindcss": "^3.4.17",
"typescript": "^5.2.2",
"vite": "^5.1.6",
"vite-plugin-dts": "^3.7.3",
Expand Down
Loading

0 comments on commit 22709ec

Please sign in to comment.