From 9fe1923189403bf0297f373f7cbdf846a4888a63 Mon Sep 17 00:00:00 2001 From: Charles Hacskaylo Date: Thu, 14 Sep 2017 11:05:05 -0700 Subject: [PATCH] [Front-end] Fixes for Hyperlinks Fixes #1710 Converted to span to confine clickable area to text only; Link now uses `overflow: hidden` in frame; Normalized font-size when .s-button; --- platform/commonUI/general/res/sass/controls/_controls.scss | 6 ++++-- platform/commonUI/general/res/sass/user-environ/_frame.scss | 5 ++++- platform/features/hyperlink/res/templates/hyperlink.html | 4 ++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/platform/commonUI/general/res/sass/controls/_controls.scss b/platform/commonUI/general/res/sass/controls/_controls.scss index fcf8cbf642..a84c26ea52 100644 --- a/platform/commonUI/general/res/sass/controls/_controls.scss +++ b/platform/commonUI/general/res/sass/controls/_controls.scss @@ -72,11 +72,13 @@ } } +// Hyperlink objects .s-hyperlink { - // Hyperlink objects + .label { + font-size: 0.8rem !important; + } &:not(.s-button) { color: $colorKey; - font-size: 0.8rem; &:hover { color: $colorKeyHov; } } } diff --git a/platform/commonUI/general/res/sass/user-environ/_frame.scss b/platform/commonUI/general/res/sass/user-environ/_frame.scss index 37dad0d21d..6f4c81a2a1 100644 --- a/platform/commonUI/general/res/sass/user-environ/_frame.scss +++ b/platform/commonUI/general/res/sass/user-environ/_frame.scss @@ -122,7 +122,10 @@ /********************************************************** OBJECT TYPES */ .t-object-type-hyperlink { - .s-hyperlink.s-button { + .object-holder { + overflow: hidden; + } + .l-hyperlink.s-button { // When a hyperlink is a button in a frame, make it expand to fill out to the object-holder @extend .abs; .label { diff --git a/platform/features/hyperlink/res/templates/hyperlink.html b/platform/features/hyperlink/res/templates/hyperlink.html index 9874f20e81..a1df3f6dcc 100644 --- a/platform/features/hyperlink/res/templates/hyperlink.html +++ b/platform/features/hyperlink/res/templates/hyperlink.html @@ -19,10 +19,10 @@ this source code distribution or the Licensing information page available at runtime from the About dialog for additional information. --> - -
{{domainObject.getModel().displayText}}
+ {{domainObject.getModel().displayText}}