umb-ellispsis-component: Fix visuals when used in the content app section (#8500)

This commit is contained in:
Jan Skovgaard
2020-07-30 11:30:06 +02:00
committed by GitHub
parent 81346f8fb3
commit 0e715483c7
5 changed files with 29 additions and 5 deletions
@@ -29,6 +29,7 @@
@param {boolean} showText Set to <code>true</code> to show the text. <code>false</code> by default
@param {domElement} element Highlights a DOM-element (HTML-selector)
@param {string} state Set the initial state of the component. To have it hidden use <code>hidden</code>
@param {string} mode Set the mode, which decides how to style the component. Currently only "default" and "tab" are supported
**/
(function () {
@@ -82,7 +83,8 @@
color: "@?",
showText: "<?",
element: "@?",
state: "@?"
state: "@?",
mode: "@?"
}
};
@@ -15,6 +15,7 @@
justify-content: center;
}
.umb-button-ellipsis--tab,
.umb-tour-is-visible .umb-tree &,
&:hover,
&:focus{
@@ -30,9 +31,18 @@
}
}
&__content {
display: flex;
flex-wrap: wrap;
}
&__icon {
color: inherit;
flex-basis: 100%;
.umb-button-ellipsis--tab & {
margin: 0 0 7px
}
}
&__text {
@@ -40,5 +50,13 @@
font-size: 12px;
line-height: 1em;
flex-basis: 100%;
.umb-button-ellipsis--tab & {
position: absolute;
right: 0;
left: 0;
bottom: 13px;
margin: 0 auto;
}
}
}
@@ -40,7 +40,7 @@
}
&.is-active {
color: @ui-light-active-type;
color: @ui-light-active-type !important;
&::before {
opacity: 1;
@@ -3,8 +3,10 @@
data-element="{{vm.element}}"
class="btn-reset umb-button-ellipsis {{vm.cssClass}}"
style="color:{{vm.color}};"
ng-class="{'umb-button-ellipsis--hidden': vm.state === 'hidden', 'show-text': vm.showText}"
ng-class="{'umb-button-ellipsis--hidden': vm.state === 'hidden', 'show-text': vm.showText, 'umb-button-ellipsis--tab' : vm.mode === 'tab'}"
ng-click="vm.clickButton($event)">
<span class="umb-button-ellipsis__icon" aria-hidden="true">&bull;&bull;&bull;</span>
<span class="umb-button-ellipsis__text" ng-class="{'sr-only': vm.showText !== true}">{{vm.text}}</span>
<span class="umb-button-ellipsis__content">
<span class="umb-button-ellipsis__icon" aria-hidden="true">&bull;&bull;&bull;</span>
<span class="umb-button-ellipsis__text" ng-class="{'sr-only': vm.showText !== true}">{{vm.text}}</span>
</span>
</button>
@@ -22,6 +22,8 @@
color="#1b264f"
text="{{moreButton.name}}"
show-text="true"
mode="tab"
css-class="umb-sub-views-nav-item__action umb-outline umb-outline--thin {{moreButton.active ? 'is-active' : ''}}"
>
</umb-button-ellipsis>