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

fix: Remove quotes from delete dialog #10008 #10471

Merged
merged 7 commits into from Sep 1, 2022

Conversation

JessieTeng89
Copy link
Contributor

fix: Remove quotes from delete dialog #10008
Fixes #10008

Signed-off-by: Teng, Jessie <yilin.teng@fmr.com>
Signed-off-by: Teng, Jessie <yilin.teng@fmr.com>
@codecov
Copy link

codecov bot commented Aug 29, 2022

Codecov Report

Merging #10471 (57ff13f) into master (6717162) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #10471   +/-   ##
=======================================
  Coverage   45.76%   45.76%           
=======================================
  Files         234      234           
  Lines       28460    28460           
=======================================
  Hits        13025    13025           
  Misses      13658    13658           
  Partials     1777     1777           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

</p>
{isManaged ? (
<div className='argo-form-row'>
<FormField label={`Please type '${resource.name}' to confirm the deletion of the resource`} formApi={api} field='resourceName' component={Text} />
<FormField label={`Please type <kbd>${resource.name}</kbd> to confirm the deletion of the resource`} formApi={api} field='resourceName' component={Text} />
Copy link
Contributor

Choose a reason for hiding this comment

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

The HTML tag should not be displayed in the dialog box, not sure if this is intentional
Screen Shot 2022-08-29 at 12 06 19 PM

Signed-off-by: Teng, Jessie <yilin.teng@fmr.com>
@jsoref
Copy link
Member

jsoref commented Aug 30, 2022

Could you provide a picture of the dialog?

@JessieTeng89
Copy link
Contributor Author

Could you provide a picture of the dialog?

Please find the screenshots for the current changes:
image
image
image

@JessieTeng89
Copy link
Contributor Author

@rbreeze Can I request your approval? So that we can merge it, or I appreciate with your any comments

Copy link
Member

@rbreeze rbreeze left a comment

Choose a reason for hiding this comment

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

<kbd> is intended for keyboard input, could we use <pre> instead?

@jsoref
Copy link
Member

jsoref commented Aug 31, 2022

@rbreeze: this is keyboard input, we're asking users to literally type that content!

@JessieTeng89
Copy link
Contributor Author

<kbd> is intended for keyboard input, could we use <pre> instead?

I tried to use <pre> instead, we need to add a css style like display: inline-block as this tag is a block-level element.

And you can see the change and the style in following screenshot, if it is OK for you, I can do the change
image

Copy link
Member

@rbreeze rbreeze left a comment

Choose a reason for hiding this comment

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

let’s stick with kbd

@JessieTeng89
Copy link
Contributor Author

let’s stick with kbd

Hi @jsoref @rbreeze Can I know how to merge it, it seems I cannot do that even its status is ready

@jsoref
Copy link
Member

jsoref commented Sep 1, 2022

Someone with the ability to merge will manage that (it isn't me and it isn't you).

@rbreeze rbreeze merged commit a057ae1 into argoproj:master Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove quotes from delete dialog
4 participants