Skip to content

Conversation

khmakoto
Copy link
Member

@khmakoto khmakoto commented May 6, 2019

Pull request checklist

  • Addresses an existing issue: Fixes #0000
  • Include a change request file using $ npm run change

Description of changes

This PR makes all of MenuButton props optional so that they don't have to be necessarily provided by the users of the component. This change was spurred by this comment in #8754.

Focus areas to test

(optional)

Microsoft Reviewers: Open in CodeFlow

@JasonGore
Copy link
Member

This feels like it would have required some code changes.. I wonder if onMenuDismiss from user props is working. We should verify and add some unit tests as part of this PR to confirm. (Also, will probably break #8931 which is good.)

@msft-github-bot
Copy link
Contributor

Component perf results:

Scenario Target branch avg total (ms) PR avg total (ms) Target branch avg per item (ms) PR avg per item (ms)
PrimaryButton 103.329 98.555 1.033 0.986
BaseButton 38.447 38.486 0.385 0.385
NewButton 120.598 138.728 1.206 1.387
button 6.057 5.896 0.061 0.059
DetailsRows without styles 203.707 199.361 2.037 1.994
DetailsRows 218.637 218.413 2.186 2.184
Toggles 53.279 53.556 0.533 0.536
NewToggle 70.906 70.177 0.709 0.702
DocumentCardTitle with truncation 27.812 ... 0.278 ...

@msft-github-bot
Copy link
Contributor

Hello @khmakoto!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

Do note that I've been instructed to only help merge pull-requests of this repository that have been opened for at least 8 hours, a condition that is not currently met. No worries though, I will be back when the time is right! 😉

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 and give me an instruction to get started! Learn more here.

@khmakoto
Copy link
Member Author

khmakoto commented May 6, 2019

@msft-github-bot wait 15 minutes

@msft-github-bot
Copy link
Contributor

Hello @khmakoto!

Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:

  • I won't merge this pull request until after the UTC date Mon, 06 May 2019 21:33:50 GMT, which is in 15 minutes

If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you".

@msft-github-bot msft-github-bot merged commit 8d6c7c4 into microsoft:fabric-7 May 6, 2019
@khmakoto khmakoto deleted the buttonOptionalMenu branch May 6, 2019 21:34
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants