-
Notifications
You must be signed in to change notification settings - Fork 228
chore: Refactor Select Input to a single Stencil #3240
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
base: prerelease/major
Are you sure you want to change the base?
chore: Refactor Select Input to a single Stencil #3240
Conversation
Workday/canvas-kit
|
Project |
Workday/canvas-kit
|
Branch Review |
mc-refactor-select-stencil
|
Run status |
|
Run duration | 02m 56s |
Commit |
|
Committer | Manuel Carrera |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
2
|
|
21
|
|
0
|
|
936
|
View all changes introduced in this branch ↗︎ |
UI Coverage
21.27%
|
|
---|---|
|
1530
|
|
411
|
Accessibility
99.28%
|
|
---|---|
|
6 critical
5 serious
0 moderate
2 minor
|
|
98
|
closing. this doesn't solve the problem just quite. |
maxHeight: px2rem(300), | ||
export const selectCardStencil = createStencil({ | ||
base: { | ||
maxHeight: px2rem(300), |
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.
It seems like maxHeight
should be a Stencil variable in MenuCard
since menu cards often need some type of overflow height. We don't want them to be too large. There should be some default. I don't want the CSS variable to be passed via JavaScript because that would restrict overrides via CSS.
It would looks something like:
base: {
[menuCardStencil.vars.maxHeight]: px2rem(300),
]
I don't know if menuCard
should have a default maxHeight... It seems like it should. Menus aren't always popups, but a MenuCard
is always part of a popup.
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.
give it another look when you get a second
Summary
Update
Select.Input
to use a single stencil using theparts
property oncreateStencil
.Release Category
Components
Checklist
ready for review
has been added to PRFor the Reviewer
Where Should the Reviewer Start?
Areas for Feedback? (optional)
Testing Manually
Screenshots or GIFs (if applicable)
Thank You Gif (optional)