-
Notifications
You must be signed in to change notification settings - Fork 276
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(tag): refactor fix lost css for button,tag #2301
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 |
---|---|---|
|
@@ -114,9 +114,7 @@ | |
:label="node.id" | ||
:disabled="!!node.disabled" | ||
></tiny-radio> | ||
<svg v-if="node.loading" class="tiny-tree-node__loading tiny-svg circular" viewBox="25 25 50 50"> | ||
<circle class="path" cx="50" cy="50" r="24" fill="none"></circle> | ||
</svg> | ||
<icon-loading v-if="node.loading" class="tiny-tree-node__loading" /> | ||
<slot name="prefix" :node="node"></slot> | ||
<template v-if="action.type === 'edit' && action.node && action.node === node"> | ||
<tiny-input | ||
|
@@ -242,7 +240,7 @@ import { renderless, api } from '@opentiny/vue-renderless/tree-node/vue' | |
import CollapseTransition from '@opentiny/vue-collapse-transition' | ||
import { | ||
iconChevronRight, | ||
iconLoading, | ||
iconLoadingShadow, | ||
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 Issues Found: Inconsistent usage of Several Affected files include, but are not limited to:
Please ensure all instances of 🔗 Analysis chainLGTM: Updated loading icon import and registration. The change from To ensure this change doesn't introduce any unexpected visual regressions, please run the following verification script: This script will help identify any inconsistencies in the usage of the new Also applies to: 328-328 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify the usage of iconLoadingShadow across the codebase
# Test: Check for any remaining usage of the old iconLoading
echo "Checking for any remaining usage of iconLoading:"
rg "iconLoading[^Shadow]" --type vue
# Test: Verify consistent usage of iconLoadingShadow
echo "Verifying consistent usage of iconLoadingShadow:"
rg "iconLoadingShadow" --type vue
# Test: Check for any potential naming conflicts
echo "Checking for potential naming conflicts:"
rg "IconLoading" --type vue
Length of output: 489 Script: #!/bin/bash
# Description: Verify the usage of iconLoadingShadow across the codebase
# Test: Check for any remaining usage of the old iconLoading
echo "Checking for any remaining usage of iconLoading:"
rg "iconLoading[^Shadow]" -g "*.vue"
# Test: Verify consistent usage of iconLoadingShadow
echo "Verifying consistent usage of iconLoadingShadow:"
rg "iconLoadingShadow" -g "*.vue"
# Test: Check for any potential naming conflicts
echo "Checking for potential naming conflicts:"
rg "IconLoading" -g "*.vue"
Length of output: 7742 |
||
iconArrowBottom, | ||
iconEdit, | ||
iconDel, | ||
|
@@ -327,7 +325,7 @@ export default defineComponent({ | |
TinyRadio: Radio, | ||
TinyInput: Input, | ||
IconChevronRight: iconChevronRight(), | ||
IconLoading: iconLoading(), | ||
IconLoading: iconLoadingShadow(), | ||
IconArrowBottom: iconArrowBottom(), | ||
IconEdit: iconEdit(), | ||
IconDel: iconDel(), | ||
|
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
Potential Issue: Line Height Set to Border Width
The variable
--tv-Button-line-height
is currently set tovar(--tv-border-width)
(1px
). Assigning a border width value to line height is unconventional and may result in text alignment issues within buttons.Consider the following:
🔗 Analysis chain
Clarify the purpose of setting line height to border width
The addition of
--tv-Button-line-height
is consistent with the existing naming conventions. However, setting the line height to the border width (var(--tv-border-width)
) is unusual and might lead to unexpected button appearances. This could affect text alignment and overall button height.Consider the following:
To assess the impact of this change, let's check how the
--tv-border-width
variable is defined and used:This will help us understand the context and potential implications of using border width as line height.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 454
Script:
Length of output: 1442