Skip to content

Commit

Permalink
pref: add --component-comment-item-meta-info-color var
Browse files Browse the repository at this point in the history
  • Loading branch information
AirboZH committed Mar 5, 2024
1 parent bf04243 commit 04be270
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/comment-widget/src/base-comment-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class BaseCommentItem extends LitElement {
}
.item__meta-info {
color: darkcyan;
color: var(--component-comment-item-meta-info-color);
font-size: 0.75em;
line-height: 1em;
}
Expand Down
4 changes: 4 additions & 0 deletions packages/comment-widget/src/styles/var.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ const varStyles = css`
#4b5563
);
--component-comment-item-meta-info-color: var(
--halo-comment-widget-component-comment-item-meta-info-color,
darkcyan
);
--component-comment-item-action-bg-color-hover: var(
--halo-comment-widget-component-comment-item-action-bg-color-hover,
#f3f4f6
Expand Down
2 changes: 2 additions & 0 deletions packages/comment-widget/var.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
--halo-comment-widget-component-form-button-submit-border-color-hover: #64748b;
--halo-comment-widget-component-form-button-emoji-color: #cbd5e1;

--halo-comment-widget-component-comment-item-meta-info-color: darkcyan;
--halo-comment-widget-component-comment-item-action-bg-color-hover: #475569;
--halo-comment-widget-component-comment-item-action-color: #64748b;
--halo-comment-widget-component-comment-item-action-color-hover: #94a3b8;
Expand Down Expand Up @@ -51,6 +52,7 @@
--halo-comment-widget-component-form-button-submit-border-color-hover: #64748b;
--halo-comment-widget-component-form-button-emoji-color: #cbd5e1;

--halo-comment-widget-component-comment-item-meta-info-color: darkcyan;
--halo-comment-widget-component-comment-item-action-bg-color-hover: #475569;
--halo-comment-widget-component-comment-item-action-color: #64748b;
--halo-comment-widget-component-comment-item-action-color-hover: #94a3b8;
Expand Down
1 change: 1 addition & 0 deletions packages/example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
--halo-comment-widget-component-form-button-submit-border-color-hover: #64748b;
--halo-comment-widget-component-form-button-emoji-color: #cbd5e1;

--halo-comment-widget-component-comment-item-meta-info-color: darkcyan;
--halo-comment-widget-component-comment-item-action-bg-color-hover: #475569;
--halo-comment-widget-component-comment-item-action-color: #64748b;
--halo-comment-widget-component-comment-item-action-color-hover: #94a3b8;
Expand Down

0 comments on commit 04be270

Please sign in to comment.