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

fixes #2100 - removing button is now a cross on top right #2616

Merged
merged 1 commit into from
Oct 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions webcompat/static/css/src/form.css
Original file line number Diff line number Diff line change
Expand Up @@ -258,15 +258,16 @@
}

.form-upload .label-remove:not(.is-hidden) {
align-items: center;
display: flex;
flex-direction: column;
height: 100%;
justify-content: center;
left: 0;
background-color: #fff;
border: 1px solid rgba(255, 201, 0, 1);
border-radius: 50%;
cursor: pointer;
left: auto;
padding: .8em;
position: absolute;
right: 0;
top: 0;
transform: none;
width: 100%;
transform: translate(50%, -50%);
}

.icon-remove,
Expand Down
4 changes: 1 addition & 3 deletions webcompat/templates/home-page/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,11 @@ <h1 class="headline-1">Report Site Issue</h1>
</div>

<div class="label-icon label-remove is-hidden js-remove-upload">
<svg class="icon icon-big" role="presentation" title="Remove Screenshot">
<svg class="icon" role="presentation" title="Remove Screenshot">
<use class="icon-remove" xlink:href="#svg-x">Remove Screenshot</use>
</svg>
<small class="label-icon-message">Remove screenshot</small>
</div>


<div class="label-icon label-error is-hidden js-error-upload">
<svg class="icon icon-big" role="presentation" title="An error occoured">
<use class="icon-error" xlink:href="#svg-warning">An error occoured</use>
Expand Down