-
Notifications
You must be signed in to change notification settings - Fork 74
Table: Set fixed check box width , new prop for setting row action column width #2874
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: main
Are you sure you want to change the base?
Table: Set fixed check box width , new prop for setting row action column width #2874
Conversation
✅ Deploy Preview for moduswebcomponents canceled.
|
Hello! Can you please provide steps to test/review the changes? I tried changing the |
The example controls for rowActions are not added in the link provided, try the Row Actions type where the examples are added and rowActions have some example controls. |
da9d990
to
66ea43d
Compare
905ccdc
to
22c3f2b
Compare
…-row-action-column
@ElishaSamPeterPrabhu I can reproduce the same issue when using fullwidth to true. It might be due to the width set for other th's using |
Sure, will check |
I attempted the following solutions, but either the row action column's width, which is set, does not remain fixed, or the widths of the other columns are reduced when the row action column's width stays the same.
|
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.
File: stencil-workspace/src/components/modus-checkbox/modus-checkbox.scss (line 6)
Adding justify-content: center; to the host may affect the alignment of checkbox content, especially if the component is used in layouts expecting left alignment. Please verify that this change does not unintentionally break existing layouts or cause visual regressions in consumer applications.
File: stencil-workspace/src/components/modus-table/models/table-context.models.ts (line 57)
Adding new properties to the TableContext interface is fine, but ensure that all usages of this interface throughout the codebase are updated accordingly. If these properties are optional, consider marking them as such to avoid breaking existing consumers.
File: stencil-workspace/src/components/modus-table/modus-table.tsx (line 175)
The new rowActionSize prop is not marked as optional in the type definition, but the comment suggests it is. Consider using @prop() rowActionSize?: number; to avoid potential issues if the prop is not provided.
File: stencil-workspace/src/components/modus-table/modus-table.tsx (line 524)
Passing rowActionSize through context is appropriate, but ensure that all consumers of this context property handle the case where it may be undefined.
File: stencil-workspace/src/components/modus-table/parts/modus-table-header.tsx (line 36)
The logic for rowActionsLength now allows for a custom size, but if rowActionSize is 0 or a falsy value, it will fall back to the calculated default. If 0 is a valid value, this may not be the intended behavior. Consider explicitly checking for undefined or null instead of falsy values.
File: stencil-workspace/src/components/modus-table/parts/row/selection/modus-table-header-checkbox.tsx (line 18)
The use of a Map for density widths is a good approach, but ensure that all possible density values are accounted for to avoid unexpected fallbacks to '46px'.
Description
References
Fixes #1922
Type of change
How Has This Been Tested?
Checklist