Skip to content

How to apply custom style to FluentUI Web Components #232

Closed Answered by vnbaaij
da-ms-22 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
Regarding the height and width, see #207. You can address margin through css as well with something like:

::deep > fluent-dialog::part(control) {
    --dialog-width: 300px;
    --dialog-height: 350px;
    padding: 2rem;
}

Beware that the <FluentDialog> needs to be in a <div> or something like that for the ::deep to work.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@da-ms-22
Comment options

Answer selected by da-ms-22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants