From 61a16221391212b757ee8b15d0d17df7b3199557 Mon Sep 17 00:00:00 2001 From: Burcu Noyan Date: Tue, 14 Jan 2025 12:42:54 -0500 Subject: [PATCH] Fix missing stack-item headerColor and realm-icon border properties (#2038) * fix missing headerColor and realm-icon border properties * rev change * add test * update test --- .../src/components/card-header/index.gts | 43 ++++++------ .../src/components/card-header/usage.gts | 6 +- .../components/operator-mode/stack-item.gts | 18 ++++- .../components/operator-mode-test.gts | 67 ++++++++++++++++--- 4 files changed, 96 insertions(+), 38 deletions(-) diff --git a/packages/boxel-ui/addon/src/components/card-header/index.gts b/packages/boxel-ui/addon/src/components/card-header/index.gts index 1c654420c5..ecc2a9aa19 100644 --- a/packages/boxel-ui/addon/src/components/card-header/index.gts +++ b/packages/boxel-ui/addon/src/components/card-header/index.gts @@ -1,4 +1,3 @@ -import { concat } from '@ember/helper'; import { on } from '@ember/modifier'; import Component from '@glimmer/component'; import type { ComponentLike } from '@glint/template'; @@ -37,33 +36,27 @@ export default class CardHeader extends Component { get safeMoreOptionsMenuItems() { return this.args.moreOptionsMenuItems || []; } - get headerColor() { - return ( - this.args.headerColor || - getComputedStyle(document.documentElement).getPropertyValue( - '--boxel-light', - ) - ); - }