Skip to content

Commit

Permalink
docs: fix typo in components-usage.md & switch-theme.md (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyxTheOracle authored Sep 4, 2023
1 parent e2d0da2 commit da269d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/guide/components-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ antd-style 的一开始使用对象是业务应用,因此在默认的设计上

局部选择器除了 where 以外, is 也是可以实现的。但 `:where()``:is()` 的不同之处,也是最重要的一点,在于 **`:where()` 的权重总是为 0**。 也就是说,利用 where 选择器,我们就可以实现 0 权重增加的情况下,为组件样式添加局部作用域,**同时组件仍然保留和原本一致的覆写便捷度**

下述 demo 就是一组对比示例。上方一组是未使用 where 选择器的 demo,下方一组是使用 whrere 选择器的 demo,两组 demo 都在外部添加了同一组覆写样式。
下述 demo 就是一组对比示例。上方一组是未使用 where 选择器的 demo,下方一组是使用 where 选择器的 demo,两组 demo 都在外部添加了同一组覆写样式。

```css
.my-btn {
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/switch-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ demo:

# 主题切换

如今亮暗色主题切换的能力已经逐渐成为 PC、手机等默认支持得功能。浏览器也提供了媒体查询的能力来帮助我们快速适配亮色主题。在 Ant Design V5 中,基于 Css in Js 的能力我们实现了更加优雅的运行时主题切换能力。
如今亮暗色主题切换的能力已经逐渐成为 PC、手机等默认支持的功能。浏览器也提供了媒体查询的能力来帮助我们快速适配亮色主题。在 Ant Design V5 中,基于 Css in Js 的能力我们实现了更加优雅的运行时主题切换能力。

但是由于 antd 作为基础组件的定位,在主题能力方面只提供了基础的 api ,并没有提供应用级开箱即用的方案。 所以 `antd-style` 在 antd 动态主题基础上,提供了一套完整的应用级动态主题方案。

Expand Down

0 comments on commit da269d3

Please sign in to comment.