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

ContextMenu: Double opacity applied to disabled items #14773

Closed
akasaka-oc opened this issue Feb 9, 2024 · 0 comments · Fixed by #14805
Closed

ContextMenu: Double opacity applied to disabled items #14773

akasaka-oc opened this issue Feb 9, 2024 · 0 comments · Fixed by #14805
Assignees
Labels
LTS-16-PORTABLE Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@akasaka-oc
Copy link

Describe the bug

List items in p-contextmenu are applied double opacity when they are disabled.
The expected opacity is 0.5, but it is much smaller.

<!-- this is opacity: 0.5 -->
<li role="menuitem" class="p-element ng-tns-c1945770638-4 p-menuitem p-disabled ng-star-inserted" ...>
    <div ...>
        <!-- and this is also opacity: 0.5 -->
        <a class="p-ripple p-element ng-tns-c1945770638-4 p-menuitem-link p-disabled ng-star-inserted" ....>
            ...
        </a>
    </div>
</li>

Environment

Windows 11, Chrome

Reproducer

https://stackblitz.com/edit/dje4jx?file=src%2Fapp%2Fdemo%2Fcontext-menu-basic-demo.ts

Angular version

17.0.5

PrimeNG version

17.6.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.11

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

Opacity is applied to single element.

@akasaka-oc akasaka-oc added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 9, 2024
@mehmetcetin01140 mehmetcetin01140 self-assigned this Feb 14, 2024
@mehmetcetin01140 mehmetcetin01140 added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Feb 14, 2024
@mehmetcetin01140 mehmetcetin01140 added this to the 17.7.0 milestone Feb 14, 2024
cetincakiroglu added a commit that referenced this issue Feb 14, 2024
Fixed #14773 - ContextMenu | Double opacity applied to disabled items
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTS-16-PORTABLE Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants