Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "office-ui-fabric-react",
"comment": "PeoplePicker: Adding vertical-align styles and horizontal only keyboarding to the member list people picker focus zone.",
"type": "patch"
}
],
"email": "v-krbrow@microsoft.com"
}
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,8 @@ export class BasePickerListBelow<T, P extends IBasePickerProps<T>> extends BaseP
{ this.renderSuggestions() }
<FocusZone ref={ this._resolveRef('focusZone') }
className='ms-BasePicker-selectedItems'
isInnerZoneKeystroke={ this._isFocusZoneInnerKeystroke } >
isInnerZoneKeystroke={ this._isFocusZoneInnerKeystroke }
direction={ 1 } >

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the FocusZoneDirection enum, rather than a magic number.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, this has been changed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MLoughry, this portion of the change has been completely removed. Can you take another look and approve here?

{ this.renderItems() }
</FocusZone>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@

.itemContainer {
display: inline-block;
vertical-align: top;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really necessary?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is in Edge. Without it, items can get out of alignment as you keyboard through them.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it is!!! any time you inline-block, you should strongly, strongly consider setting vertical alignment. Otherwise the browser will shuffle the div around trying to align its containing text with other text.

}