From a238c74440aafa73d175f61bcb58ea77b791cc70 Mon Sep 17 00:00:00 2001 From: James Allen Date: Fri, 13 Jul 2018 11:19:49 +0100 Subject: [PATCH] Remove inline style --- services/web/app/views/user/settings/user-affiliations.pug | 3 +-- services/web/public/stylesheets/app/account-settings.less | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/services/web/app/views/user/settings/user-affiliations.pug b/services/web/app/views/user/settings/user-affiliations.pug index 5f57cf1048..7333a67a08 100644 --- a/services/web/app/views/user/settings/user-affiliations.pug +++ b/services/web/app/views/user/settings/user-affiliations.pug @@ -69,8 +69,7 @@ form.row( td.affiliations-table-inline-actions // Disabled buttons don't work with tooltips, due to pointer-events: none, // so create a wrapper for the tooltip - div( - style="display: inline-block" + div.affiliations-table-inline-action-disabled-wrapper( tooltip=translate("please_confirm_your_email_before_making_it_default") ng-if="!userEmail.default && !userEmail.confirmedAt" ) diff --git a/services/web/public/stylesheets/app/account-settings.less b/services/web/public/stylesheets/app/account-settings.less index d1b79b0c06..3b6d321925 100644 --- a/services/web/public/stylesheets/app/account-settings.less +++ b/services/web/public/stylesheets/app/account-settings.less @@ -29,6 +29,9 @@ .affiliations-table-inline-action { text-transform: capitalize; } + .affiliations-table-inline-action-disabled-wrapper { + display: inline-block; + } .affiliations-table-highlighted-row { background-color: tint(@content-alt-bg-color, 6%); }