mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Missing bottom border in select-kit color list settings
This commit is contained in:
@@ -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}`;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -71,6 +71,7 @@
|
||||
color: inherit;
|
||||
display: flex;
|
||||
outline: none;
|
||||
border-bottom: 2px solid transparent;
|
||||
|
||||
.d-icon + .name {
|
||||
margin-left: 0.5em;
|
||||
|
||||
Reference in New Issue
Block a user