-
Notifications
You must be signed in to change notification settings - Fork 10.2k
feat: added custom classnames for event-limits tab #17478
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
Conversation
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (11/05/24)1 reviewer was added to this PR based on Keith Williams's automation. "Add platform team as reviewer" took an action on this PR • (11/05/24)1 reviewer was added to this PR based on Keith Williams's automation. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
E2E results are ready! |
export type EventLimitsTabCustomClassNames = { | ||
bufferAndNoticeSection?: { | ||
container?: string; | ||
beforeBufferSelect?: SelectClassNames; |
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.
Question - what does innerClassNames
mean within SelectClassNames
? These are classnames already existing in the code?
I am asking because if we have before buffer select:
"container": "mb-4",
"label": "text-purple-700",
"select": "border border-purple-300 rounded-md text-purple-900 bg-white",
"innerClassNames": {
"input": "text-purple-900",
"option": "text-purple-700 hover:bg-purple-200",
"control": "border-purple-300",
"singleValue": "text-purple-900",
"valueContainer": "bg-purple-100",
"menu": "border border-purple-200 rounded-md",
"menuList": "bg-white"
}
},
we have select
key and then innerClassNames
. I wonder if we should rename select
to container
and innerClassNames
to select
and then move container
within the select
so we would have:
"beforeBufferSelect": {
"container": "mb-4",
"label": "text-purple-700",
"select": {
"container": "border border-purple-300 rounded-md text-purple-900 bg-white",
"input": "text-purple-900",
"option": "text-purple-700 hover:bg-purple-200",
"control": "border-purple-300",
"singleValue": "text-purple-900",
"valueContainer": "bg-purple-100",
"menu": "border border-purple-200 rounded-md",
"menuList": "bg-white"
}
},
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.
and the same for others
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.
innerClassNames?: { |
yes -- these are classnames we already have in our ui/select component
bookingFrequencyLimitSection-> bookingFrequencyLimit totalDurationLimitSection-> totalDurationLimit futureBookingLimitSection-> futureBookingLimit offsetStartTimesSection-> offsetStartTimes
this was a mistake, fixed in 51696e9 |
What does this PR do?
This PR introduces customizable class names (customClassnames) for the Event Type limits page in the project. This addition allows developers to style specific elements of the Event Type limits page
Below is a full list of available custom class names with default styling:
Screenshot of Changes
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
Checklist