Skip to content

Commit

Permalink
fix(Carousel): indicatorColor 与默认保持一致
Browse files Browse the repository at this point in the history
  • Loading branch information
CaedmonW committed Oct 29, 2022
1 parent eead539 commit 752dd04
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .changeset/unlucky-baboons-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"ossaui": patch
"ossa-demo": patch
"ossa-doc": patch
---

indicatorColor 与默认保持一致
6 changes: 3 additions & 3 deletions packages/ossa-demo/src/components/carousel/demo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ const initialListApi = {
list: ["indicatorDots", "展示指示器,可选", "boolean", "false"],
},
{
list: ["indicatorColor", "指示点颜色,可选", "boolean", "true"],
list: ["indicatorColor", "指示点颜色,可选", "string", "rgba(0, 0, 0, .3)"],
},
{
list: [
"indicatorActiveColor",
"当前选中指示点颜色,可选",
"boolean",
"false",
"string",
"#000000",
],
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/ossa/src/components/carousel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Carousel.defaultProps = {
interval: 4000,
circular: true,
indicatorDots: false,
indicatorColor: "#ffffff",
indicatorColor: "rgba(0, 0, 0, 0.3)",
indicatorActiveColor: "#000000",
current: 0,
gap: false,
Expand Down
4 changes: 4 additions & 0 deletions packages/ossa/src/style/components/carousel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
}

&.ossa-carousel-h5 {
.swiper-pagination-bullet {
opacity: 1;
}

&.ossa-carousel-h5--space {
height: 100%;

Expand Down

0 comments on commit 752dd04

Please sign in to comment.