-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
DetailsList: Remove unnecessary styles #13540
Conversation
Perf AnalysisNo significant results to display. All results
Perf Analysis (Fluent)Perf comparison
Perf tests with no regressions
|
Asset size changes
Over Tolerance (1024 B) Over Baseline Below Baseline New Removed 1 kB = 1000 B Baseline commit: 52da3b627c30777bfc11db0b87f68494c6a6a86a (build) |
Hello @phkuo! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Just being cautious here, but any time we usually touch styling that has the potential to break others - especially if are changing/removing behavior. Do folks have an idea of how impactful these changes are? |
@paulgildea Yes I understand the concern. We do have several visual regression tests in place here in FluentUI run as part of the PR. I've been playing around with these changes in SharePoint in different lists to verify that there won't be regressions for the big big lists there. I've also consulted Thomas, who has more experience than me in this feature area. He's actually piloted removing the pixel-based in-width from the header already, and can confirm that it works as expected. Regarding the removal of the background, that'd actually be buggy if anyone were taking advantage of it. |
@@ -218,7 +217,6 @@ export class DetailsHeaderBase extends React.Component<IDetailsHeaderBaseProps, | |||
ref={this._onRootRef} | |||
onMouseMove={this._onRootMouseMove} | |||
data-automationid="DetailsHeader" | |||
style={{ minWidth: rowWidth }} | |||
direction={FocusZoneDirection.horizontal} |
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.
I think this will shrink the header to a smaller width than rows.
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 does not in my testing, because each column has a width set anyways
i've been testing with column resize as well
i'm honestly not sure why rowWidth exists in the first place if each field's width needs to be calculated individually anyways
@ThomasMichon any thoughts?
🎉 Handy links: |
Pull request checklist
$ yarn change
Description of changes
Removes some styles that do nothing for the list. See attached workitem.