-
-
Notifications
You must be signed in to change notification settings - Fork 424
refactor(LinkBase/ButtonBase): add inline prop & rename size prop for buttons and links #1319
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
Changes from 2 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 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -59,10 +59,10 @@ const isExpanded = shallowRef(false) | |||||||||||||
| > | ||||||||||||||
| <template v-if="installScripts.content?.[scriptName] && scriptParts[scriptName]"> | ||||||||||||||
| <template v-if="scriptParts[scriptName].prefix"> | ||||||||||||||
| {{ scriptParts[scriptName].prefix | ||||||||||||||
| }}<LinkBase :to="scriptParts[scriptName].link">{{ | ||||||||||||||
| scriptParts[scriptName].filePath | ||||||||||||||
| }}</LinkBase> | ||||||||||||||
| {{ scriptParts[scriptName].prefix }} | ||||||||||||||
| <LinkBase :to="scriptParts[scriptName].link" text="sm"> | ||||||||||||||
| {{ scriptParts[scriptName].filePath }} | ||||||||||||||
| </LinkBase> | ||||||||||||||
|
Contributor
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. Likely typo: Based on the PR objectives and all other LinkBase usages in this PR (which use 🔧 Proposed fix {{ scriptParts[scriptName].prefix }}
- <LinkBase :to="scriptParts[scriptName].link" text="sm">
+ <LinkBase :to="scriptParts[scriptName].link" size="sm">
{{ scriptParts[scriptName].filePath }}
</LinkBase>📝 Committable suggestion
Suggested change
|
||||||||||||||
| </template> | ||||||||||||||
| <LinkBase v-else :to="scriptParts[scriptName].link"> | ||||||||||||||
| {{ installScripts.content[scriptName] }} | ||||||||||||||
|
|
||||||||||||||
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.
Setting a class like this doesn't work, because Uno won't pick these up. It only works "by accident", because these classes are all used somewhere else. Try setting
bg-indigo-300here and it wouldn't be applied.This needs to be inlined into the components class prop.