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

Prevent link redirection in disabled action button #527

Merged
merged 2 commits into from
Mar 29, 2023

Conversation

karthikjeeyar
Copy link
Contributor

Fixes

https://issues.redhat.com/browse/HAC-3612

Description

When a user doesn't have a enough permission to perform an action, then the button is disabled but the user is still able to click on the button and it redirects to the underlying link.

This PR also fixes the colour scheme for kebab menu actions.

Type of change

  • Bugfix

Screen shots / Gifs for design review

Link redirection:

Before:
disabled_button_click

After:

fixed_disabled_button_click

Kebab menu action color Schemes:

Before After
Screenshot 2023-03-29 at 10 08 22 AM Screenshot 2023-03-29 at 11 44 38 AM

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

/cc @rottencandy

@openshift-ci openshift-ci bot requested a review from rottencandy March 29, 2023 06:16
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 29, 2023
@codecov
Copy link

codecov bot commented Mar 29, 2023

Codecov Report

Merging #527 (2724f02) into main (65c0d3b) will increase coverage by 0.09%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #527      +/-   ##
==========================================
+ Coverage   78.55%   78.64%   +0.09%     
==========================================
  Files         433      433              
  Lines       10156    10162       +6     
  Branches     2828     2832       +4     
==========================================
+ Hits         7978     7992      +14     
+ Misses       2063     2059       -4     
+ Partials      115      111       -4     
Impacted Files Coverage Δ
src/components/ApplicationDetails/DetailsPage.tsx 93.84% <100.00%> (+0.09%) ⬆️
...c/shared/components/action-menu/ActionMenuItem.tsx 100.00% <100.00%> (+17.94%) ⬆️

... and 3 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 65c0d3b...2724f02. Read the comment docs.

Copy link
Contributor

@rottencandy rottencandy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 29, 2023
@karthikjeeyar
Copy link
Contributor Author

/retest

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Mar 29, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 29, 2023

@karthikjeeyar: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@rottencandy
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 29, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 29, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: karthikjeeyar, rottencandy

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@karthikjeeyar
Copy link
Contributor Author

/retest

1 similar comment
@karthikjeeyar
Copy link
Contributor Author

/retest

@openshift-merge-robot openshift-merge-robot merged commit db76982 into openshift:main Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants