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

[Docs]: Add documentation how to use features of web components #33859

Open
3 of 5 tasks
dinmukhamed09 opened this issue Feb 18, 2025 · 0 comments
Open
3 of 5 tasks

[Docs]: Add documentation how to use features of web components #33859

dinmukhamed09 opened this issue Feb 18, 2025 · 0 comments

Comments

@dinmukhamed09
Copy link

dinmukhamed09 commented Feb 18, 2025

Area

Web Components (https://web-components.fluentui.dev)

What kind of documentation issue are you reporting?

  • Reporting a typo
  • Reporting a documentation bug
  • Documentation improvement
  • Documentation feedback

Is there a specific documentation page you are reporting?

No.

Description

I'm using custom styles to define some styles by default. e.g. fluent-button appearance.

In previous versions it works, but I have updated to latest version and faced some issues regarding define custom styles.

I see that you have docs for react docs/react-v9/contributing. I would really appreciaite if you could create the same for web-components or angular.

I have updated packages to:
Packages:

@fluentui/web-components": "2.6.1"
@microsoft/fast-element": "2.1.0"

Previous packages and implementation
Packages:

@fluentui/web-components": "2.5.16"
@microsoft/fast-element": "1.12.0"

Implementation:

provideFluentDesignSystem().register(
  fluentButton({
    attributes: (): AttributeConfiguration[] => {
      return [
        {
          property: 'appearance',
          attribute: 'appearance',
          converter: {
            toView(): string {
              return 'accent';
            },
            fromView(): string {
              return 'accent';
            },
          },
        },
      ];
    },
  }),

Validations

  • Check that there isn't already an issue that requests the same feature to avoid creating a duplicate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants