-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add classNameOverride to MultiSelectOption #21
Conversation
🦋 Changeset detectedLatest commit: 5d803a6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Sorry @kaydwithers we shouldn't be adding styles specifically to fix Murmur, since we can't check if all the other products won't break. You'll have to resolve this on your side. |
@gyfchong I've updated the PR so that I can add classNameOverride to the component that I need to add content-box to. |
import { Icon } from "@kaizen/component-library" | ||
import check from "@kaizen/component-library/icons/check.icon.svg" | ||
import { Badge } from "@kaizen/draft-badge" | ||
import { MultiSelectItem } from "../../../types" | ||
import { useSelectionContext } from "../../provider" | ||
import styles from "./MultiSelectOption.module.scss" | ||
|
||
export interface MultiSelectOptionProps { | ||
export interface MultiSelectOptionProps | ||
extends OverrideClassName<HTMLAttributes<HTMLSpanElement>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've also added native attributes to the props API but it's not implemented in the component. Let's just remove that part because it's going to add complications to this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @dougmacknz , that's done now.
I'll get you to update the PR title as well plz 🙏 |
Why
This PR adds classNameOverride to the MultiSelectOption.
In Murmur the icon was not displaying correctly due to the reset.scss file using
box-sizing: border-box;
addingbox-sizing: content-box;
to the icon resolves this issue in Murmur.With classNameOverride added I can now add a Tailwind
box-content
class.Fixes REP-597.
What
Before
After