We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
text
1 parent b364787 commit 1fdff4dCopy full SHA for 1fdff4d
src/rules/no-deprecated-props.js
@@ -172,7 +172,12 @@ const replacements = {
172
right: { name: 'location', value: 'right' },
173
round: 'rounded',
174
shaped: false,
175
- text: { name: 'variant', value: 'text' },
+ text (attr) {
176
+ return (!attr.directive && !attr.value) ||
177
+ (attr.directive && [true, false].includes(attr.value.expression.value))
178
+ ? { name: 'variant', value: 'text' }
179
+ : true
180
+ },
181
top: { name: 'location', value: 'top' },
182
...link,
183
...theme,
0 commit comments