Skip to content

Nav: wire a link to expand/collapse behavior if it has no URL but has children#4171

Merged
dzearing merged 3 commits intomicrosoft:masterfrom
warmsea:Nav
Mar 4, 2018
Merged

Nav: wire a link to expand/collapse behavior if it has no URL but has children#4171
dzearing merged 3 commits intomicrosoft:masterfrom
warmsea:Nav

Conversation

@warmsea
Copy link
Copy Markdown
Contributor

@warmsea warmsea commented Mar 4, 2018

In the Nav component, today, when a node has children, only the chevron icon triggers expand and collapse behavior. The link of the parent node can be set to a URL. But in some scenarios, we don't have a link for the parent node. Instead, we want it to trigger expand/collapse behavior too when clicking the node.

This PR is to wire a link to expand/collapse behavior if it has no URL but has children.

@dzearing dzearing merged commit 172b7c5 into microsoft:master Mar 4, 2018
Markionium added a commit to Markionium/office-ui-fabric-react that referenced this pull request Mar 5, 2018
* master: (51 commits)
  Applying package updates.
  No unused variable (microsoft#4173)
  Use correct _list ref string (microsoft#4168)
  Nav: wire a link to expand/collapse behavior if it has no URL but has children (microsoft#4171)
  Addressing Issue microsoft#4147 - Nav Buttons have invalid `aria-describedby` value (microsoft#4159)
  Fix issue 3608: DetailsList horizontal scroll (microsoft#4164)
  Update package.json
  Image SCSS to MergeStyles Part 2: Style Conversion (microsoft#4151)
  Applying package updates.
  [SpinButton] Consistent styles to Button and TextField (microsoft#4098)
  ChoiceGroup: Flex layout for image and icon options (microsoft#4137)
  Initial set of Keytips work in experiments (microsoft#4062)
  Updating tsconfig in button bundle.
  BaseExtendedPicker: Create contextmenu for renderedItem, fix auto focus (microsoft#3954)
  Dropdown: Custom render options for multiselect - Bug fix microsoft#3571  (microsoft#3589)
  Fix documentcard theming (microsoft#4155)
  BasePicker: Fix not used onBlur callback of inputProps (microsoft#4000) (microsoft#4131)
  Allow Elements as Callout targets (microsoft#4134)
  CommandBar: Fixed null commandItemWidths (microsoft#4136)
  add check for when this.suggestionElement may be undefined (microsoft#4157)
  ...
Markionium added a commit to Markionium/office-ui-fabric-react that referenced this pull request Mar 6, 2018
* master:
  Applying package updates.
  No unused variable (microsoft#4173)
  Use correct _list ref string (microsoft#4168)
  Nav: wire a link to expand/collapse behavior if it has no URL but has children (microsoft#4171)
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants