Skip to content

Commit

Permalink
Merge pull request #15023 from brave/emerick-rewards-fix-relaunch-but…
Browse files Browse the repository at this point in the history
…ton-styling

Add restamp attribute to Restart buttons to avoid misstyling them when hiding/showing
  • Loading branch information
emerick committed Sep 8, 2022
2 parents 22c0846 + 6b04b46 commit 70eaa82
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
<settings-toggle-button
label="$i18n{braveRewardsInlineTipRedditLabel}"
pref="{{prefs.brave.rewards.inline_tip.reddit}}">
<template is="dom-if" if="[[shouldShowRestartButtonForReddit_(prefs.brave.rewards.inline_tip.reddit.value)]]">
<template is="dom-if" if="[[shouldShowRestartButtonForReddit_(prefs.brave.rewards.inline_tip.reddit.value)]]" restamp>
<cr-button on-click="restartBrowser_" slot="more-actions">
$i18n{restart}
</cr-button>
Expand All @@ -131,7 +131,7 @@
<settings-toggle-button
label="$i18n{braveRewardsInlineTipTwitterLabel}"
pref="{{prefs.brave.rewards.inline_tip.twitter}}">
<template is="dom-if" if="[[shouldShowRestartButtonForTwitter_(prefs.brave.rewards.inline_tip.twitter.value)]]">
<template is="dom-if" if="[[shouldShowRestartButtonForTwitter_(prefs.brave.rewards.inline_tip.twitter.value)]]" restamp>
<cr-button on-click="restartBrowser_" slot="more-actions">
$i18n{restart}
</cr-button>
Expand All @@ -140,7 +140,7 @@
<settings-toggle-button
label="$i18n{braveRewardsInlineTipGithubLabel}"
pref="{{prefs.brave.rewards.inline_tip.github}}">
<template is="dom-if" if="[[shouldShowRestartButtonForGithub_(prefs.brave.rewards.inline_tip.github.value)]]">
<template is="dom-if" if="[[shouldShowRestartButtonForGithub_(prefs.brave.rewards.inline_tip.github.value)]]" restamp>
<cr-button on-click="restartBrowser_" slot="more-actions">
$i18n{restart}
</cr-button>
Expand Down

0 comments on commit 70eaa82

Please sign in to comment.