Skip to content

Commit

Permalink
feat: add --noticebar-border-radius && --noticebar-padding for noticebar
Browse files Browse the repository at this point in the history
  • Loading branch information
xsf0105 committed Mar 23, 2023
1 parent 99b2795 commit 7919075
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/quark/src/noticebar/doc-react.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,7 @@ The component provides the following [CSS variables](https://developer.mozilla.o

| Name | Description | Default |
| ------------------------- | ---------------- | --------- |
| `--noticebar-border-radius` | component border-radius | 0px |
| `--noticebar-padding` | component padding | 10px |
| `--noticebar-left-color` | Left icon color | `inherit` |
| `--noticebar-right-color` | Right icon color | `inherit` |
2 changes: 2 additions & 0 deletions packages/quark/src/noticebar/doc-react.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,7 @@ import { Marquee } from "@quarkd/quark-react";

| 名称 | 说明 | 默认值 |
| ------------------------- | ------------ | ------ |
| `--noticebar-border-radius` | 组件倒圆角 | 0px |
| `--noticebar-padding` | 内边距 | 10px |
| `--noticebar-left-color` | 左侧图标颜色 | `继承` |
| `--noticebar-right-color` | 右侧图标颜色 | `继承` |
2 changes: 2 additions & 0 deletions packages/quark/src/noticebar/doc.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,7 @@ The component provides the following [CSS variables](https://developer.mozilla.o

| Name | Description | Default |
| ------------------------- | ---------------- | --------- |
| `--noticebar-border-radius` | component border-radius | `0px` |
| `--noticebar-padding` | component padding | `10px` |
| `--noticebar-left-color` | Left icon color | `inherit` |
| `--noticebar-right-color` | Right icon color | `inherit` |
2 changes: 2 additions & 0 deletions packages/quark/src/noticebar/doc.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,7 @@ import "quarkd/lib/marquee";

| 名称 | 说明 | 默认值 |
| ------------------------- | ------------ | ------ |
| `--noticebar-border-radius` | 组件倒圆角 | `0px` |
| `--noticebar-padding` | 内边距 | `10px` |
| `--noticebar-left-color` | 左侧图标颜色 | `继承` |
| `--noticebar-right-color` | 右侧图标颜色 | `继承` |
4 changes: 2 additions & 2 deletions packages/quark/src/noticebar/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
position: relative;
display: flex;
align-items: center;
padding: 11px;
border-radius: 8px;
padding: var(--noticebar-padding, 10px);
border-radius: var(--noticebar-border-radius, 0);
color: #ee8c02;
background: #fef4e7;
}
Expand Down

0 comments on commit 7919075

Please sign in to comment.