FIX: Missing bottom border in select-kit color list settings

This commit is contained in:
Penar Musaraj
2020-08-06 14:52:17 -04:00
parent 7df57b35da
commit af63871d4d
2 changed files with 6 additions and 3 deletions

View File

@@ -5,12 +5,14 @@ import { schedule } from "@ember/runloop";
export default SelectedNameComponent.extend({
classNames: ["select-kit-selected-color"],
didReceiveAttrs() {
didInsertElement() {
this._super(...arguments);
schedule("afterRender", () => {
const color = escapeExpression(this.name);
this.element.style.borderBottomColor = `#${color}`;
const color = escapeExpression(this.name),
el = document.querySelector(`[data-value="${color}"]`);
if (el) el.style.borderBottomColor = `#${color}`;
});
}
});

View File

@@ -71,6 +71,7 @@
color: inherit;
display: flex;
outline: none;
border-bottom: 2px solid transparent;
.d-icon + .name {
margin-left: 0.5em;