-
Notifications
You must be signed in to change notification settings - Fork 6
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(OnyxAvatar): update default initials #2450
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 3eee875 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
ae41f2a
to
3eee875
Compare
@@ -6,18 +6,13 @@ const props = withDefaults(defineProps<OnyxAvatarProps>(), { | |||
size: "48px", | |||
}); | |||
|
|||
const slots = defineSlots<{ |
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.
Please leave the option in to use a slot, then we don't have a breaking change
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.
Personally, I don't like having two ways for doing the same thing 🤔 Since slot also allows non-text content which we propably don't want to support, I'd prefer the propert.
What do you think?
closes #2442
Previously the initials were taken from the first two words. Now they will be used from the first and last word.
Example for "John Middlename Doe":
The default slot has been removed in favor of the
initials
property to set custom initials.Checklist
npx changeset add
if your changes should be released as npm package (because they affect the library usage)