Skip to content

fix: Disabled buttons with custom colors should not have hover effect in FluentButton #2967

Closed

Description

🐛 Bug Report

FluentButton has inconsistent hover effects when BackgroundColor or Color is set.

Normal buttons have no hover effect, but buttons with custom colors do.

💻 Repro or Code Sample

            <FluentButton Disabled="true">Normal</FluentButton>
            <FluentButton Disabled="true" BackgroundColor="orange">Colored</FluentButton>

🤔 Expected Behavior

The colored button should not have a hover effect:
Image

😯 Current Behavior

The button changes opacity.

Image

💁 Possible Solution

Probably a simple change to the CSS selector should fix the issue: 7462372

🔦 Context

🌍 Your Environment

  • OS & Device: Windows 11
  • Browser: Chrome + Firefox
  • .NET and Fluent UI Blazor library Version: 9.0 and 4.10.3

Activity

  1. added
    triage
    on Nov 22, 2024
  2. added
    closed:done
    and removed
    triage
    on Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions