From 0b395482f1770d7946868f475a6187ec001eea2a Mon Sep 17 00:00:00 2001 From: Bjarne Fyrstenborg Date: Wed, 16 Oct 2019 16:00:59 +0200 Subject: [PATCH] Use umb-radiobutton in public access overlay (#6612) --- .../forms/umbradiobutton.directive.js | 2 + src/Umbraco.Web.UI.Client/src/less/hacks.less | 3 +- .../components/forms/umb-radiobutton.html | 15 +++--- .../src/views/content/protect.html | 46 +++++++++---------- 4 files changed, 32 insertions(+), 34 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/forms/umbradiobutton.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/forms/umbradiobutton.directive.js index df45181991e7..bb36e3b0279c 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/forms/umbradiobutton.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/forms/umbradiobutton.directive.js @@ -22,6 +22,7 @@ @param {boolean} model Set to true or false to set the radiobutton to checked or unchecked. +@param {string} inputId Set the id of the radiobutton. @param {string} value Set the value of the radiobutton. @param {string} name Set the name of the radiobutton. @param {string} text Set the text for the radiobutton label. @@ -55,6 +56,7 @@ controllerAs: 'vm', bindings: { model: "=", + inputId: "@", value: "@", name: "@", text: "@", diff --git a/src/Umbraco.Web.UI.Client/src/less/hacks.less b/src/Umbraco.Web.UI.Client/src/less/hacks.less index 0b6d1b7a603b..3ead4d6905ec 100644 --- a/src/Umbraco.Web.UI.Client/src/less/hacks.less +++ b/src/Umbraco.Web.UI.Client/src/less/hacks.less @@ -111,11 +111,10 @@ iframe, .content-column-body { } .pa-select-type label { - padding: 0 20px; + padding: 0 15px; } .pa-access-header { - font-weight: bold; margin: 0 0 3px 0; padding-bottom: 0; } diff --git a/src/Umbraco.Web.UI.Client/src/views/components/forms/umb-radiobutton.html b/src/Umbraco.Web.UI.Client/src/views/components/forms/umb-radiobutton.html index f3daa652d6e8..9ee50bcae196 100644 --- a/src/Umbraco.Web.UI.Client/src/views/components/forms/umb-radiobutton.html +++ b/src/Umbraco.Web.UI.Client/src/views/components/forms/umb-radiobutton.html @@ -1,12 +1,13 @@