Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exports MenuItemRole From MenuItem #27941

Merged
merged 3 commits into from
May 23, 2023
Merged

Exports MenuItemRole From MenuItem #27941

merged 3 commits into from
May 23, 2023

Conversation

halerankin
Copy link
Contributor

This PR imports from FAST and exports MenuItemRole from the MenuItem component so that the Fluent web component Angular and React wrappers can utilize role. The component README shows three inputs: role, disabled and checked. When creating wrappers in Angular and React, the role attribute cannot be reached.

Without this export, I would have to import from FAST in both my React and Angular wrappers:
import { roleForMenuItem } from '@microsoft/fast-foundation';

It would be less convoluted to simply leverage the existing property directly from the Fluent web component.

@fabricteam
Copy link
Collaborator

fabricteam commented May 22, 2023

📊 Bundle size report

🤖 This report was generated against 616e79e4ffb38ea60d979e0e43c6695424b341a5

Copy link
Member

@chrisdholt chrisdholt left a comment

Choose a reason for hiding this comment

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

@miroslavstastny may have a slight nuanced improvement for the change file as well

@size-auditor
Copy link

size-auditor bot commented May 22, 2023

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: 616e79e4ffb38ea60d979e0e43c6695424b341a5 (build)

@codesandbox-ci
Copy link

codesandbox-ci bot commented May 22, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 2de5e4b:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

…6e8ce9.json

Co-authored-by: Chris Holt <chhol@microsoft.com>
@halerankin halerankin merged commit 60b5119 into microsoft:web-components-v3 May 23, 2023
@halerankin halerankin deleted the dev/harankin/menuItemAddExport branch May 23, 2023 18:53
chrisdholt added a commit that referenced this pull request Apr 29, 2024
* Exports MenuItemRole so that the Fluent web component Angular and React wrappers can utilize the roles.

* Runs yarn change

* Update change/@fluentui-web-components-fe7f57a9-65bb-4816-9f01-0aded96e8ce9.json

Co-authored-by: Chris Holt <chhol@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
radium-v pushed a commit to radium-v/fluentui that referenced this pull request Apr 29, 2024
* Exports MenuItemRole so that the Fluent web component Angular and React wrappers can utilize the roles.

* Runs yarn change

* Update change/@fluentui-web-components-fe7f57a9-65bb-4816-9f01-0aded96e8ce9.json

Co-authored-by: Chris Holt <chhol@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
radium-v pushed a commit to radium-v/fluentui that referenced this pull request Apr 29, 2024
* Exports MenuItemRole so that the Fluent web component Angular and React wrappers can utilize the roles.

* Runs yarn change

* Update change/@fluentui-web-components-fe7f57a9-65bb-4816-9f01-0aded96e8ce9.json

Co-authored-by: Chris Holt <chhol@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
radium-v pushed a commit to radium-v/fluentui that referenced this pull request Apr 30, 2024
* Exports MenuItemRole so that the Fluent web component Angular and React wrappers can utilize the roles.

* Runs yarn change

* Update change/@fluentui-web-components-fe7f57a9-65bb-4816-9f01-0aded96e8ce9.json

Co-authored-by: Chris Holt <chhol@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
radium-v pushed a commit that referenced this pull request Apr 30, 2024
* Exports MenuItemRole so that the Fluent web component Angular and React wrappers can utilize the roles.

* Runs yarn change

* Update change/@fluentui-web-components-fe7f57a9-65bb-4816-9f01-0aded96e8ce9.json

Co-authored-by: Chris Holt <chhol@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
radium-v pushed a commit that referenced this pull request May 2, 2024
* Exports MenuItemRole so that the Fluent web component Angular and React wrappers can utilize the roles.

* Runs yarn change

* Update change/@fluentui-web-components-fe7f57a9-65bb-4816-9f01-0aded96e8ce9.json

Co-authored-by: Chris Holt <chhol@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
radium-v pushed a commit that referenced this pull request May 2, 2024
* Exports MenuItemRole so that the Fluent web component Angular and React wrappers can utilize the roles.

* Runs yarn change

* Update change/@fluentui-web-components-fe7f57a9-65bb-4816-9f01-0aded96e8ce9.json

Co-authored-by: Chris Holt <chhol@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
radium-v pushed a commit that referenced this pull request May 2, 2024
* Exports MenuItemRole so that the Fluent web component Angular and React wrappers can utilize the roles.

* Runs yarn change

* Update change/@fluentui-web-components-fe7f57a9-65bb-4816-9f01-0aded96e8ce9.json

Co-authored-by: Chris Holt <chhol@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
radium-v pushed a commit that referenced this pull request May 3, 2024
* Exports MenuItemRole so that the Fluent web component Angular and React wrappers can utilize the roles.

* Runs yarn change

* Update change/@fluentui-web-components-fe7f57a9-65bb-4816-9f01-0aded96e8ce9.json

Co-authored-by: Chris Holt <chhol@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
radium-v pushed a commit that referenced this pull request May 6, 2024
* Exports MenuItemRole so that the Fluent web component Angular and React wrappers can utilize the roles.

* Runs yarn change

* Update change/@fluentui-web-components-fe7f57a9-65bb-4816-9f01-0aded96e8ce9.json

Co-authored-by: Chris Holt <chhol@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
radium-v pushed a commit that referenced this pull request May 6, 2024
* Exports MenuItemRole so that the Fluent web component Angular and React wrappers can utilize the roles.

* Runs yarn change

* Update change/@fluentui-web-components-fe7f57a9-65bb-4816-9f01-0aded96e8ce9.json

Co-authored-by: Chris Holt <chhol@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
radium-v pushed a commit that referenced this pull request May 8, 2024
* Exports MenuItemRole so that the Fluent web component Angular and React wrappers can utilize the roles.

* Runs yarn change

* Update change/@fluentui-web-components-fe7f57a9-65bb-4816-9f01-0aded96e8ce9.json

Co-authored-by: Chris Holt <chhol@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
radium-v pushed a commit that referenced this pull request May 10, 2024
* Exports MenuItemRole so that the Fluent web component Angular and React wrappers can utilize the roles.

* Runs yarn change

* Update change/@fluentui-web-components-fe7f57a9-65bb-4816-9f01-0aded96e8ce9.json

Co-authored-by: Chris Holt <chhol@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants