-
Notifications
You must be signed in to change notification settings - Fork 809
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6688 from surveyjs/feature/6474
Change choose button caption if file is going to be replaced
- Loading branch information
Showing
18 changed files
with
223 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
<div class="sv_q_file"> | ||
<input aria-invalid="false" aria-label="Question title" aria-required="false" class="sv-visuallyhidden" id="testid0i" tabindex="-1" title=" " type="file"> | ||
<div> | ||
<div class="sv-file__decorator"> | ||
<span class="sv-hidden">Drag and drop a file here or click the button below and choose a file to upload.</span> | ||
<div> | ||
<label aria-label="Choose file" class="sv_q_file_choose_button" role="button" tabindex="0"> | ||
<span>Choose file</span> | ||
</label> | ||
</div> | ||
</div> | ||
<button class="sv_q_file_remove_button" type="button"> | ||
<span>Clear</span> | ||
</button> | ||
<div> | ||
<span class="sv_q_file_preview"> | ||
<div class="sv_q_file_sign"> | ||
<a download="arrow.svg" href="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6L" style="width:350px;" title="arrow.svg">arrow.svg</a> | ||
</div> | ||
<div> | ||
<img alt="File preview" src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6L" style="height:250px; width:350px;"> | ||
<div> | ||
<span class="sv_q_file_remove">Remove this file</span> | ||
</div> | ||
</div> | ||
</span> | ||
</div> | ||
</div> | ||
<div class="sv_q_file"> | ||
<input aria-invalid="false" aria-label="Question title" aria-required="false" class="sv-visuallyhidden" id="testid0i" tabindex="-1" title=" " type="file"> | ||
<div> | ||
<div class="sv-file__decorator"> | ||
<span class="sv-hidden">Drag and drop a file here or click the button below and choose a file to upload.</span> | ||
<div> | ||
<label aria-label="Replace file" class="sv_q_file_choose_button" role="button" tabindex="0"> | ||
<span>Replace file</span> | ||
</label> | ||
</div> | ||
</div> | ||
<button class="sv_q_file_remove_button" type="button"> | ||
<span>Clear</span> | ||
</button> | ||
<div> | ||
<span class="sv_q_file_preview"> | ||
<div class="sv_q_file_sign"> | ||
<a download="arrow.svg" href="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6L" style="width:350px;" title="arrow.svg">arrow.svg</a> | ||
</div> | ||
<div> | ||
<img alt="File preview" src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6L" style="height:250px; width:350px;"> | ||
<div> | ||
<span class="sv_q_file_remove">Remove this file</span> | ||
</div> | ||
</div> | ||
</span> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
<div class="sv-file"> | ||
<input aria-invalid="false" aria-label="Question title" aria-required="false" class="sv-visuallyhidden" id="testid0i" tabindex="-1" title=" " type="file"> | ||
<div> | ||
<div class="sv-file__decorator"> | ||
<span class="sv-hidden">Drag and drop a file here or click the button below and choose a file to upload.</span> | ||
<div class="sv-file__wrapper"> | ||
<label aria-label="Choose file" class="sv-btn sv-file__choose-btn" role="button" tabindex="0"> | ||
<span>Choose file</span> | ||
</label> | ||
</div> | ||
</div> | ||
<button class="sv-hidden" type="button"> | ||
<span>Clear</span> | ||
</button> | ||
<div> | ||
<span class="sv-file__preview"> | ||
<div> | ||
<img alt="File preview" src="#item1.png"> | ||
<div> | ||
<span class="sv-hidden">Remove this file</span> | ||
<svg aria-label="Remove this file" class="sv-file__remove-svg sv-svg-icon" role="img"> | ||
<use xlink:href="#icon-removefile" class=""> | ||
</use> | ||
<title class="">Remove this file</title> | ||
</svg> | ||
</div> | ||
</div> | ||
<div class="sv-file__sign"> | ||
<a download="item1.png" href="#item1.png" title="item1.png">item1.png</a> | ||
</div> | ||
</span> | ||
</div> | ||
<button class="sv-btn sv-file__clean-btn" type="button"> | ||
<span>Clear</span> | ||
</button> | ||
</div> | ||
<div class="sv-file"> | ||
<input aria-invalid="false" aria-label="Question title" aria-required="false" class="sv-visuallyhidden" id="testid0i" tabindex="-1" title=" " type="file"> | ||
<div> | ||
<div class="sv-file__decorator"> | ||
<span class="sv-hidden">Drag and drop a file here or click the button below and choose a file to upload.</span> | ||
<div class="sv-file__wrapper"> | ||
<label aria-label="Replace file" class="sv-btn sv-file__choose-btn" role="button" tabindex="0"> | ||
<span>Replace file</span> | ||
</label> | ||
</div> | ||
</div> | ||
<button class="sv-hidden" type="button"> | ||
<span>Clear</span> | ||
</button> | ||
<div> | ||
<span class="sv-file__preview"> | ||
<div> | ||
<img alt="File preview" src="#item1.png"> | ||
<div> | ||
<span class="sv-hidden">Remove this file</span> | ||
<svg aria-label="Remove this file" class="sv-file__remove-svg sv-svg-icon" role="img"> | ||
<use xlink:href="#icon-removefile" class=""> | ||
</use> | ||
<title class="">Remove this file</title> | ||
</svg> | ||
</div> | ||
</div> | ||
<div class="sv-file__sign"> | ||
<a download="item1.png" href="#item1.png" title="item1.png">item1.png</a> | ||
</div> | ||
</span> | ||
</div> | ||
<button class="sv-btn sv-file__clean-btn" type="button"> | ||
<span>Clear</span> | ||
</button> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
<div class="sv-file"> | ||
<input aria-invalid="false" aria-label="Question title" aria-required="false" class="sv-visuallyhidden" id="testid0i" tabindex="-1" title=" " type="file"> | ||
<div> | ||
<div class="sv-file__decorator"> | ||
<span class="sv-hidden">Drag and drop a file here or click the button below and choose a file to upload.</span> | ||
<div class="sv-file__wrapper"> | ||
<label aria-label="Choose file" class="sv-btn sv-file__choose-btn" role="button" tabindex="0"> | ||
<span>Choose file</span> | ||
</label> | ||
</div> | ||
</div> | ||
<button class="sv-hidden" type="button"> | ||
<span>Clear</span> | ||
</button> | ||
<div> | ||
<span class="sv-file__preview"> | ||
<div> | ||
<div> | ||
<span class="sv-hidden">Remove this file</span> | ||
<svg aria-label="Remove this file" class="sv-file__remove-svg sv-svg-icon" role="img"> | ||
<use xlink:href="#icon-removefile" class=""> | ||
</use> | ||
<title class="">Remove this file</title> | ||
</svg> | ||
</div> | ||
</div> | ||
<div class="sv-file__sign"> | ||
<a download="item1.zip" href="#item1.zip" title="item1.zip">item1.zip</a> | ||
</div> | ||
</span> | ||
</div> | ||
<button class="sv-btn sv-file__clean-btn" type="button"> | ||
<span>Clear</span> | ||
</button> | ||
</div> | ||
<div class="sv-file"> | ||
<input aria-invalid="false" aria-label="Question title" aria-required="false" class="sv-visuallyhidden" id="testid0i" tabindex="-1" title=" " type="file"> | ||
<div> | ||
<div class="sv-file__decorator"> | ||
<span class="sv-hidden">Drag and drop a file here or click the button below and choose a file to upload.</span> | ||
<div class="sv-file__wrapper"> | ||
<label aria-label="Replace file" class="sv-btn sv-file__choose-btn" role="button" tabindex="0"> | ||
<span>Replace file</span> | ||
</label> | ||
</div> | ||
</div> | ||
<button class="sv-hidden" type="button"> | ||
<span>Clear</span> | ||
</button> | ||
<div> | ||
<span class="sv-file__preview"> | ||
<div> | ||
<div> | ||
<span class="sv-hidden">Remove this file</span> | ||
<svg aria-label="Remove this file" class="sv-file__remove-svg sv-svg-icon" role="img"> | ||
<use xlink:href="#icon-removefile" class=""> | ||
</use> | ||
<title class="">Remove this file</title> | ||
</svg> | ||
</div> | ||
</div> | ||
<div class="sv-file__sign"> | ||
<a download="item1.zip" href="#item1.zip" title="item1.zip">item1.zip</a> | ||
</div> | ||
</span> | ||
</div> | ||
<button class="sv-btn sv-file__clean-btn" type="button"> | ||
<span>Clear</span> | ||
</button> | ||
</div> | ||
</div> |
Oops, something went wrong.