Skip to content

Commit

Permalink
refactor(avatar): change css class name
Browse files Browse the repository at this point in the history
  • Loading branch information
HamudeHomsi committed Jun 30, 2023
1 parent 2c7fd2d commit d956ce8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions packages/bee-q/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -595,12 +595,9 @@ export namespace Components {
"value": string;
}
interface BqToast {
<<<<<<< HEAD
/**
* Method to be called to hide the toast component
*/
=======
>>>>>>> eac78e6 (fix(avatar): change badge position based on shape)
"hide": () => Promise<void>;
/**
* If true will hide toast icon
Expand All @@ -614,23 +611,17 @@ export namespace Components {
* Placement of toast
*/
"placement": TToastPlacement;
<<<<<<< HEAD
/**
* Method to be called to show the toast component
*/
=======
>>>>>>> eac78e6 (fix(avatar): change badge position based on shape)
"show": () => Promise<void>;
/**
* The length of time, in milliseconds, after which the toast will close itself
*/
"time": number;
<<<<<<< HEAD
/**
* This method can be used to display toasts in a fixed-position element that allows for stacking multiple toasts vertically
*/
=======
>>>>>>> eac78e6 (fix(avatar): change badge position based on shape)
"toast": () => Promise<void>;
/**
* Type of toast
Expand Down
2 changes: 1 addition & 1 deletion packages/bee-q/src/components/avatar/bq-avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class BqAvatar {
<Host>
<div
class={{
avatar: true,
'bq-avatar': true,
[`size--${this.size}`]: true,
'rounded-[var(--bq-avatar--border-radius-circle)]': this.shape === 'circle',
'rounded-[var(--bq-avatar--border-radius-squareXs)]': this.shape === 'square' && this.size === 'xsmall',
Expand Down
2 changes: 1 addition & 1 deletion packages/bee-q/src/components/avatar/scss/bq-avatar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@apply relative inline-block;
}

.avatar {
.bq-avatar {
@apply relative overflow-hidden bg-[var(--bq-avatar-background)];
@apply border-[length:var(--bq-avatar--border-width)] border-[color:var(--bq-avatar--border-color)];

Expand Down

0 comments on commit d956ce8

Please sign in to comment.