Closed zzcr closed 1 month ago
The changes in this pull request involve updates to the switch component's styling and testing. The test case for the switch button has been simplified by removing assertions related to the border-top-color
, focusing instead on the background-color
. Additionally, the CSS variables used in the switch component have been updated from a ti-
prefix to a tv-
prefix, with corresponding adjustments in the associated LESS files to maintain consistency with the new naming convention.
Files | Change Summary |
---|---|
examples/sites/demos/pc/app/switch/basic-usage.spec.ts |
Removed assertions checking the border-top-color of the switch button; retained assertions for background-color . |
packages/theme/src/switch/index.less , packages/theme/src/switch/vars.less |
Updated CSS variable names from --ti- to --tv- , replaced the mixin .component-css-vars-switch() with .inject-Switch-vars() , and modified various styling attributes to align with the new variable naming convention. Changes include updates to background colors, dimensions, and loading states for the switch component. |
border-top-color
, aligning with the simplification of test assertions in this PR.tiny-popconfirm
components include updates to props and styling, reflecting a broader effort to align components with the new theming approach.🐰 In the garden, changes bloom,
Switches dance, dispelling gloom.
Fromti-
totv-
, a fresh new start,
Styling brightens, a work of art.
Testing simplified, colors align,
Hopping forward, all will be fine! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit
New Features
Bug Fixes
Documentation