Skip to content

Commit

Permalink
feat(junior): change embed reboot button into a pixButton
Browse files Browse the repository at this point in the history
  • Loading branch information
rouxxi authored Dec 16, 2024
1 parent ca78e46 commit e39959c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
</iframe>
{{#if @shouldDisplayRebootButton}}
<div class="reboot-container">
<button
type="button"
<PixButton
class="link link--grey reboot-container__content"
aria-label={{t "pages.challenge.embed-simulator.actions.reset-label"}}
{{on "click" this.rebootSimulator}}
@iconBefore="refresh"
@variant="tertiary"
@triggerAction={{this.rebootSimulator}}
>
<PixIcon @name="refresh" @ariaHidden={{true}} class="embed-reboot-content__icon" />
{{t "components.challenge.embed-simulator.actions.reset"}}
</button>
</PixButton>
</div>
{{/if}}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
.reboot-container {
display: flex;
justify-content: flex-end;
color: var(--pix-neutral-500);

.pix-button--tertiary {
color: var(--pix-neutral-500);
text-decoration: none;
}

&__content {
display: flex;
Expand Down

0 comments on commit e39959c

Please sign in to comment.