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

Backport of UI: [VAULT-19982] confirm delete modal for namespaces into release/1.15.x #23101

Merged

Conversation

hc-github-team-secure-vault-core
Copy link
Collaborator

Backport

This PR is auto-generated from #23066 to be assessed for backporting due to the inclusion of the label backport/1.15.x.

The below text is copied from the body of the original PR.


Description
Setting a height using inline styles directly in the template causes Content Security Policy errors.

Content Security Policy errors from putting inline styles:
Screenshot 2023-09-13 at 4 31 38 PM

The bug:
Screenshot 2023-09-13 at 2 57 14 PM

A few solutions to possibly prevent the Content Security Policy error:
Solution 1:
Instead of calculating the height, set a fixed min-height and add class with that min-height style. See possible solution 1 here: f5b785e
Solution 2:
Add the height style directly using js instead of in our templates. I paired with Jordan a little bit on this and found that this will likely not cause Content Security Policy errors since ember-basic-dropdown does something similar and injects some styling and these styles are set after initial render. See possible solution 2 here: 5fa9b68


Overview of commits

@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/ui/confirm-bug/mostly-vocal-spider branch 2 times, most recently from 7a9db97 to 210c59a Compare September 14, 2023 19:20
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Sep 14, 2023
@github-actions
Copy link

Build Results:
All builds succeeded! ✅

@kiannaquach kiannaquach added this to the 1.15.0 milestone Sep 14, 2023
@github-actions
Copy link

CI Results:
All Go tests succeeded! ✅

@kiannaquach kiannaquach enabled auto-merge (squash) September 15, 2023 00:25
@kiannaquach kiannaquach merged commit 12a3ce6 into release/1.15.x Sep 15, 2023
99 of 100 checks passed
@kiannaquach kiannaquach deleted the backport/ui/confirm-bug/mostly-vocal-spider branch September 15, 2023 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants