Skip to content

DetailsRow - cellStyleProps prop now passed to getClassNames #12648

@sgbdev

Description

@sgbdev

Environment Information

  • Package version(s): office-ui-fabric-react 7.105.12
  • Browser and OS versions: Chrome: Version 80.0.3987.163 (Official Build) (64-bit), Microsoft Windows Version 1903 Build 18362.657

Please provide a reproduction of the bug in a codepen:

https://codepen.io/sgbdev/pen/zYvxKYo

Actual behavior:

When passing cellStyleProps to DetailsList, list cells still have default padding, while column headers use padding from cellStyleProps.

Column Header Padding
image

DetailsRow Padding
image

After doing some digging it looks like the DetailsRow.base.render method does not pass cellStyleProps to the getClassnames function. cellStyleProps is being passed to DetailsRow from the DetailsList.base._onRenderCell method.

Expected behavior:

DetailsRow should pass cellStyleProps to getClassNames function like it is in DetailsColumn.

Priorities and help requested:

Are you willing to submit a PR to fix? Maybe?

Requested priority: Normal

Products/sites affected: None known

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions