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

avoid void #16439

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from
Draft

avoid void #16439

wants to merge 2 commits into from

Conversation

martenson
Copy link
Member

@martenson martenson commented Jul 24, 2023

avoids parsing, better CSP

xref #16297 (comment)

(Please replace this header with a description of your pull request. Please include BOTH what you did and why you made the changes. The "why" may simply be citing a relevant Galaxy issue.)
(If fixing a bug, please add any relevant error or traceback)
(For UI components, it is recommended to include screenshots or screencasts)

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

avoids parsing, better CSP
@martenson martenson added the kind/refactoring cleanup or refactoring of existing code, no functional changes label Jul 24, 2023
@@ -10,7 +10,7 @@
<b-alert show variant="warning" dismissible>
{{ noElementsHeader }}
{{ allInvalidElementsPartOne }}
<a class="cancel-text" href="javascript:void(0)" role="button" @click="oncancel">
<a class="cancel-text" href="" role="button" @click.prevent="oncancel">

Choose a reason for hiding this comment

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

Using a button for links without an href is preferable. The .ui-link helper class should style a button to look like a link.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks! I am experimenting to see how it behaves where.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/admin kind/refactoring cleanup or refactoring of existing code, no functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants