MudBlazor/MudBlazor

MudTooltip: Style and Class ignored, not rendered on root element

Open

#3,912 opened on Feb 9, 2022

 (2 comments) (0 reactions) (0 assignees)C# (1,631 forks)batch import
buggood first issuehas workaround

Repository metrics

Stars
 (10,394 stars)
PR merge metrics
 (Avg merge 6d 6h) (108 merged PRs in 30d)

Description

Bug type

Component

Component name

MutTooltip

What happened?

The Style parameter seems to not affect the component at all. Looking at the code it looks like it's not used anywhere -- it is bound as part of MudComponentBase, but in the toolbar's div it's not used.

This can be worked around by passing style as a UserAttribute, but it's obviously less than ideal.

Expected behavior

The style passed in Style is correctly used as the toolbar's div's style.

Reproduction link

https://try.mudblazor.com/snippet/QOGcYmaXVTXcwlLJ

Reproduction steps

  1. Make a MudToolbar.
  2. Add a Style property.
  3. The style is not applied.

Relevant log output

No response

Version (bug)

6.0.6

Version (working)

No response

What browsers are you seeing the problem on?

Firefox, Chrome, Microsoft Edge

On what operating system are you experiencing the issue?

Windows, Linux

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct

Contributor guide