diff --git a/awx/ui/client/components/_index.less b/awx/ui/client/components/_index.less index b863e39645..068cb5f609 100644 --- a/awx/ui/client/components/_index.less +++ b/awx/ui/client/components/_index.less @@ -1,5 +1,6 @@ @import 'badge/_index'; @import 'input/_index'; @import 'panel/_index'; +@import 'popover/_index'; @import 'toggle/_index'; diff --git a/awx/ui/client/components/index.js b/awx/ui/client/components/index.js index bdcccc1470..6877297d62 100644 --- a/awx/ui/client/components/index.js +++ b/awx/ui/client/components/index.js @@ -1,11 +1,13 @@ import badge from './badge/badge.directive'; import form from './form/form.directive'; +import inputLabel from './input/label.directive'; import inputSearch from './input/search.directive'; import inputSelect from './input/select.directive'; import inputText from './input/text.directive'; import panel from './panel/panel.directive'; import panelHeading from './panel/heading.directive'; import panelBody from './panel/body.directive'; +import popover from './popover/popover.directive'; import toggleButton from './toggle/button.directive'; import toggleContent from './toggle/content.directive'; @@ -13,12 +15,14 @@ angular .module('at.components', []) .directive('atBadge', badge) .directive('atForm', form) + .directive('atInputLabel', inputLabel) .directive('atInputSearch', inputSearch) .directive('atInputSelect', inputSelect) .directive('atInputText', inputText) .directive('atPanel', panel) .directive('atPanelHeading', panelHeading) .directive('atPanelBody', panelBody) + .directive('atPopover', popover) .directive('atToggleButton', toggleButton) .directive('atToggleContent', toggleContent); diff --git a/awx/ui/client/components/input/_index.less b/awx/ui/client/components/input/_index.less index 79492ed1da..1c15dca610 100644 --- a/awx/ui/client/components/input/_index.less +++ b/awx/ui/client/components/input/_index.less @@ -1,5 +1,5 @@ .at-Input { - .at-placeholder(@at-gray-dark); + .at-Placeholder(@at-gray-dark); background: @at-white; border-radius: @at-border-radius-md; @@ -14,20 +14,6 @@ } } -.at-Input-label { - color: @at-gray-dark; - font-size: small; - font-weight: @at-font-weight-sm; - text-transform: uppercase; -} - -.at-Input-label--required { - color: @at-danger; - font-weight: @at-font-weight-lg; - font-size: @at-font-lg; - line-height: 0.7; -} - .at-Input--placeholder { color: @at-gray; } @@ -36,6 +22,21 @@ border-color: @at-link; } +.at-InputLabel { + color: @at-gray-dark; + font-size: @at-font-sm; + font-weight: @at-font-weight-sm; + text-transform: uppercase; +} + +.at-InputLabel-required { + color: @at-danger; + font-weight: @at-font-weight-lg; + font-size: @at-font-lg; + line-height: @at-font-xs; + margin: @at-margin-xs @at-margin-xs 0 0; +} + .at-InputGroup { position: relative; width: 100%; @@ -49,18 +50,18 @@ } } -.at-Select { +.at-InputSelect { height: @at-input-height-md; position: relative; } -.at-Select-input { +.at-InputSelect-input { position: relative; z-index: 2; pointer-events: none; } -.at-Select-select { +.at-InputSelect-select { position: absolute; z-index: 1; top: 0; diff --git a/awx/ui/client/components/input/label.directive.js b/awx/ui/client/components/input/label.directive.js new file mode 100644 index 0000000000..c2dc7a08b9 --- /dev/null +++ b/awx/ui/client/components/input/label.directive.js @@ -0,0 +1,15 @@ +function atInputLabel (pathService) { + return { + restrict: 'E', + transclude: true, + replace: true, + templateUrl: pathService.getPartialPath('components/input/label'), + scope: { + config: '=' + } + }; +} + +atInputLabel.$inject = ['PathService']; + +export default atInputLabel; diff --git a/awx/ui/client/components/input/label.partial.html b/awx/ui/client/components/input/label.partial.html new file mode 100644 index 0000000000..6c008fd771 --- /dev/null +++ b/awx/ui/client/components/input/label.partial.html @@ -0,0 +1,5 @@ + diff --git a/awx/ui/client/components/input/select.partial.html b/awx/ui/client/components/input/select.partial.html index 98d708954e..eb57c7b9e2 100644 --- a/awx/ui/client/components/input/select.partial.html +++ b/awx/ui/client/components/input/select.partial.html @@ -1,15 +1,12 @@