-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add card-specific feedback button styling (#940)
Add card-specific styling for thumbs up/down feedback buttons on all results cards. J=SLAP-1544 TEST=manual Smoke testing to see if buttons match mock for each card
- Loading branch information
Showing
45 changed files
with
327 additions
and
124 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,54 @@ | ||
<div class="{{cardType}}-feedbackWrapper"> | ||
<div class="{{cardType}}-feedbackContent"> | ||
{{#if feedbackSubmitted}} | ||
<div class="{{cardType}}-feedbackText"> | ||
{{feedbackTextOnSubmission}} | ||
</div> | ||
{{else}} | ||
{{#if feedbackText}} | ||
<div class="{{cardType}}-feedbackText"> | ||
{{feedbackText}} | ||
{{#if directAnswerClass}} | ||
{{> feedback className=directAnswerClass cardType='HitchhikerDirectAnswerCard'}} | ||
{{else}} | ||
{{> feedback className='HitchhikerCard' cardType='HitchhikerCard'}} | ||
{{/if}} | ||
|
||
{{#*inline 'feedback'}} | ||
<div class="{{className}}-feedbackWrapper"> | ||
<div class="{{className}}-feedbackContent"> | ||
{{#if feedbackSubmitted}} | ||
<div class="{{className}}-feedbackText"> | ||
{{feedbackTextOnSubmission}} | ||
</div> | ||
{{else}} | ||
{{#if feedbackText}} | ||
<div class="{{className}}-feedbackText"> | ||
{{feedbackText}} | ||
</div> | ||
{{/if}} | ||
<div class="{{className}}-thumbsWrapper"> | ||
<form class="HitchhikerCard-thumbs js-{{cardType}}-feedbackForm"> | ||
<fieldset class="HitchhikerCard-fieldset"> | ||
<label class="HitchhikerCard-thumb"> | ||
<span class="HitchhikerCard-thumbUpIcon"> | ||
{{> icons/builtInIcon iconName='thumb' }} | ||
</span> | ||
<input type="radio" | ||
name="feedback" | ||
value="true" | ||
class="HitchhikerCard-feedback HitchhikerCard-thumbUpButton js-{{cardType}}-thumbInput"> | ||
<span class="sr-only"> | ||
{{positiveFeedbackSrText}} | ||
</span> | ||
</label> | ||
<label class="HitchhikerCard-thumb"> | ||
<span class="HitchhikerCard-thumbDownIcon"> | ||
{{> icons/builtInIcon iconName='thumb' }} | ||
</span> | ||
<input type="radio" | ||
name="feedback" | ||
value="false" | ||
class="HitchhikerCard-feedback HitchhikerCard-thumbDownButton js-{{cardType}}-thumbInput"> | ||
<span class="sr-only"> | ||
{{negativeFeedbackSrText}} | ||
</span> | ||
</label> | ||
</fieldset> | ||
<button type="submit" class="sr-only sr-only-focusable">Send feedback</button> | ||
</form> | ||
</div> | ||
{{/if}} | ||
<div class="{{cardType}}-thumbsWrapper"> | ||
<form | ||
{{#if directAnswer}} | ||
class="HitchhikerCard-thumbs js-HitchhikerDirectAnswerCard-feedbackForm" | ||
{{else}} | ||
class="HitchhikerCard-thumbs js-HitchhikerCard-feedbackForm" | ||
{{/if}} | ||
> | ||
<fieldset class="HitchhikerCard-fieldset"> | ||
<label class="HitchhikerCard-thumb"> | ||
<span class="HitchhikerCard-thumbUpIcon"> | ||
{{> icons/builtInIcon iconName='thumb' }} | ||
</span> | ||
<input type="radio" | ||
name="feedback" | ||
value="true" | ||
{{#if directAnswer}} | ||
class="HitchhikerCard-feedback HitchhikerCard-thumbUpButton js-HitchhikerDirectAnswerCard-thumbInput" | ||
{{else}} | ||
class="HitchhikerCard-feedback HitchhikerCard-thumbUpButton js-HitchhikerCard-thumbInput" | ||
{{/if}} | ||
> | ||
<span class="sr-only"> | ||
{{positiveFeedbackSrText}} | ||
</span> | ||
</label> | ||
<label class="HitchhikerCard-thumb"> | ||
<span class="HitchhikerCard-thumbDownIcon"> | ||
{{> icons/builtInIcon iconName='thumb' }} | ||
</span> | ||
<input type="radio" | ||
name="feedback" | ||
value="false" | ||
{{#if directAnswer}} | ||
class="HitchhikerCard-feedback HitchhikerCard-thumbDownButton js-HitchhikerDirectAnswerCard-thumbInput" | ||
{{else}} | ||
class="HitchhikerCard-feedback HitchhikerCard-thumbDownButton js-HitchhikerCard-thumbInput" | ||
{{/if}} | ||
> | ||
<span class="sr-only"> | ||
{{negativeFeedbackSrText}} | ||
</span> | ||
</label> | ||
</fieldset> | ||
<button type="submit" class="sr-only sr-only-focusable">Send feedback</button> | ||
</form> | ||
</div> | ||
{{/if}} | ||
</div> | ||
</div> | ||
</div> | ||
{{/inline}} |
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
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
Oops, something went wrong.