-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(theme): [scroll-text] refactor scroll-text、scrollbar、tall-st… #2292
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,15 +19,15 @@ | |
@storage-item-prefix-cls: ~'@{css-prefix}storage-item'; | ||
|
||
.@{tall-storage-prefix-cls} { | ||
.component-css-vars-tall-storage(); | ||
.inject-TallStorage-vars(); | ||
|
||
position: relative; | ||
|
||
.@{storage-list-style-prefix-cls} { | ||
position: absolute; | ||
background-color: var(--ti-tall-storage-bg-color); | ||
box-shadow: var(--ti-common-shadow-2-down); | ||
border-radius: var(--ti-tall-storage-border-radius); | ||
background-color: var(--tv-TallStorage-bg-color); | ||
box-shadow: var(--tv-TallStorage-box-shadow); | ||
Comment on lines
+28
to
+29
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Old CSS shadow variables are still in use. The old common shadow variable
Please consider updating these usages to the new 🔗 Analysis chainApprove the updated CSS variable names with a suggestion. The changes from However, the change from If there are occurrences in other components, consider whether a global shadow variable should be maintained or if component-specific shadows are preferred across the codebase. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for usage of the old common shadow variable
echo "Occurrences of the old common shadow variable:"
rg --type less '--ti-common-shadow-2-down'
Length of output: 1227 Script: #!/bin/bash
# Description: Check for usage of the old common shadow variable across the entire codebase
echo "Occurrences of the old common shadow variable '--ti-common-shadow-2-down':"
rg --type less '--ti-common-shadow-2-down'
echo "Occurrences of the new TallStorage box shadow variable '--tv-TallStorage-box-shadow':"
rg --type less '--tv-TallStorage-box-shadow'
Length of output: 1297 Script: #!/bin/bash
# Description: Check for usage of the old and new shadow variables across the entire codebase
echo "Occurrences of the old common shadow variable '--ti-common-shadow-2-down':"
rg --type less -e '--ti-common-shadow-2-down'
echo "Occurrences of the new TallStorage box shadow variable '--tv-TallStorage-box-shadow':"
rg --type less -e '--tv-TallStorage-box-shadow'
Length of output: 1096 |
||
border-radius: var(--tv-TallStorage-border-radius); | ||
width: 100%; | ||
box-sizing: border-box; | ||
z-index: 10; | ||
|
@@ -36,18 +36,18 @@ | |
padding: 0; | ||
list-style: none; | ||
overflow-y: auto; | ||
max-height: calc(var(--ti-tall-storage-item-height) * 5); | ||
max-height: calc(var(--tv-TallStorage-item-height) * 5); | ||
|
||
.@{storage-item-prefix-cls} { | ||
height: var(--ti-tall-storage-item-height); | ||
line-height: var(--ti-tall-storage-item-height); | ||
height: var(--tv-TallStorage-item-height); | ||
line-height: var(--tv-TallStorage-item-height); | ||
padding: 0 8px; | ||
white-space: nowrap; | ||
|
||
&:hover, | ||
&.item-hover { | ||
cursor: pointer; | ||
background-color: var(--ti-tall-storage-item-bg-color); | ||
background-color: var(--tv-TallStorage-item-bg-color); | ||
} | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Inconsistent variable injection methods found in
tall-storage
component.Both
.component-css-vars-tall-storage()
and.inject-TallStorage-vars()
are present inpackages/theme/src/tall-storage/index.less
. Please remove the old method to ensure consistency with the refactored variable injection approach.🔗 Analysis chain
Approve the updated variable injection method.
The change from
.component-css-vars-tall-storage()
to.inject-TallStorage-vars()
is consistent with the refactoring objectives. This new naming convention appears to be more specific and aligned with the component name, which should improve code clarity.To ensure consistency across the codebase, please run the following script:
This will help identify any remaining instances of the old method or inconsistencies in the new naming convention.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 26484