Skip to content
Snippets Groups Projects
Commit ce8798cd authored by rhenck's avatar rhenck
Browse files

[editor] TextEditor: Improve styling of combo-buttons

The color buttons now use outline instead of background-color for 
showing the selected color.

Also some alignment improvement and a hover marker for the select 
button.
parent ef7f411e
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,9 @@ import {
@Component({
selector: 'aspect-combo-button',
template: `
<div class="root-panel"
[style.background-color]="inputType === 'color' ? selectedValue : isActive ? 'lightgrey' : 'unset'">
<div class="root-panel" [style.outline]="inputType === 'color' && '1px solid'"
[style.outline-color]="selectedValue"
[style.background-color]="inputType === 'list' && isActive ? 'lightgrey' : 'unset'">
<button class="apply-button" mat-icon-button [matTooltip]="tooltip"
(click)="applySelection.emit()">
<mat-icon>{{icon}}</mat-icon>
......@@ -47,6 +48,7 @@ import {
flex-direction: row;
border: 1px solid;
border-radius: 5px;
border-color: var(--mdc-outlined-text-field-outline-color);
}
mat-select {
margin-top: 20%;
......@@ -58,7 +60,11 @@ import {
width: 24px;
border: unset;
background-color: unset;
padding: unset;
padding: 0;
margin-left: -5px;
}
.select-trigger-button:hover {
background-color: grey;
}
.apply-button {
height: 42px;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment