DetailsList drop hints and the gripper bars displayed for all columns if reorder is enabled
Environment Information
- Package version(s): 7.25+ (incl. 7.27)
- Browser and OS versions: (fill this out if relevant) Win 10, Chrome, Firefox
Please provide a reproduction of the bug in a codepen:
The issue can be observed in the demo provided with the official documentation. Is this working as intended?
https://developer.microsoft.com/en-us/fabric#/controls/web/detailslist/draganddrop
Actual behavior:
Enabling the column reorder feature results in the markings displayed for every column.
Figure 1. Markings are displayed on every column.

After changing the position of a column, the drop hint icon for that column behaves as expected and appears on hover / during the drag and drop only. The gripper bar remains visible. (Figure 2)
Figure 2. Drop hint for a "County" column behaves as expected after drag and drop

Expected behavior:
Markings should be visible on hover / during the drag and drop only Thank you for looking into this.
Priorities and help requested:
Are you willing to submit a PR to fix? (Yes, No) No
Requested priority: (Blocking, High, Normal, Low) Normal
Products/sites affected: (if applicable) n/a
This is a bug possibly introduced by https://github.com/OfficeDev/office-ui-fabric-react/pull/10120 cc: @svaibhav @aditima.
I didn't see this when reviewing the code, but perhaps I used a different example. We'll have to take a look and fix it. The hints should only show on hover and mousedown while dragging.
@KevinTCoughlin - would you mind assigning to the person to address this issue?
@KevinTCoughlin While I was reviewing my changes, I found the following change: https://github.com/OfficeDev/office-ui-fabric-react/pull/9884/files#diff-594035b9050cc429a57f0fceb24e63ba Can this be because of this change? (using display: 'inline-block' in Icon.styles.ts) If I remove this property using the developer tools, things work as expected! CC: @ecraig12345
@KevinTCoughlin While I was reviewing my changes, I found the following change: https://github.com/OfficeDev/office-ui-fabric-react/pull/9884/files#diff-594035b9050cc429a57f0fceb24e63ba Can this be because of this change? (using display: 'inline-block' in Icon.styles.ts)
It looks like this isn't related to any of our individual changes, but rather styles cascading from the "unified header" on the production documentation page.


It doesn't repro locally nor on the PR deploy sites.
cc: @micahgodbolt @aditima
Adding @Jahnp
To @KevinTCoughlin's point, this looks like the result of conflicts from ms-Icon definitions, one of which is in one of the external portals CSS (not technically UHF but also part of page infrastructure).
The second one stems from the copy of Fabric Core bundled with the site, invoked on this line: https://github.com/OfficeDev/office-ui-fabric-react/blob/6ff7873e60436513ce7c3e4f39982a461fa5c86f/apps/fabric-website/src/utilities/createSite.tsx#L135
I can repro this on the PR deploy page for the website in this random build, though it doesn't repro for the demo site (inner loop).
Off the top of my head, options to fix include: 1.) Removing the bundled Fabric Core from the site, which likely has undesirable site-wide implications, AND asking the portals team to remove or scope their ms-Icon definition 2.) Adding overrides for this specific example
2 is probably easier though a bit grosser. 1 would take substantially more work and would likely have a ripple effect throughout the site. I'd suggest someone look at 2 as a short-term bugfix while 1 is investigated.
@KevinTCoughlin While I was reviewing my changes, I found the following change: https://github.com/OfficeDev/office-ui-fabric-react/pull/9884/files#diff-594035b9050cc429a57f0fceb24e63ba Can this be because of this change? (using display: 'inline-block' in Icon.styles.ts) If I remove this property using the developer tools, things work as expected! CC: @ecraig12345
@svaibhav The display: inline-block here isn't new, just moved. So it shouldn't be the cause of this issue.
@KevinTCoughlin While I was reviewing my changes, I found the following change: https://github.com/OfficeDev/office-ui-fabric-react/pull/9884/files#diff-594035b9050cc429a57f0fceb24e63ba Can this be because of this change? (using display: 'inline-block' in Icon.styles.ts) If I remove this property using the developer tools, things work as expected! CC: @ecraig12345
@svaibhav The
display: inline-blockhere isn't new, just moved. So it shouldn't be the cause of this issue.
Yeah... Kevin explained that earlier, I was just exploring other piece of code :)
Trying for what @Jahnp said for option 2 - for now using an UGGGGGGLY hack to override styles until we can move to not needing the leaky header styles
:tada:This issue was addressed in #10371, which has now been successfully released as @uifabric/[email protected].:tada:
Handy links: