Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
fix: rename class name to user other convention
Browse files Browse the repository at this point in the history
  • Loading branch information
Raspincel committed Mar 11, 2024
1 parent 83d1ece commit 4aae39a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/web-components/comments/components/float-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ export class CommentsFloatButton extends WebComponentsBaseElement {
const floatButtonClasses = {
'comments__floating-button': true,
'hide-button': !this.isHidden && this.shouldHide,
isActive: this.isActive,
isInactive: !this.isActive,
'is-active': this.isActive,
'is-inactive': !this.isActive,
};

const textBoxClasses = {
Expand Down
4 changes: 2 additions & 2 deletions src/web-components/comments/css/annotation-pin.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ export const annotationPinStyles = css`
.comments__annotation-pin-wrapper--new .comments__annotation-pin__avatar {
transform-origin: center;
animation: teste 0.5s linear !important;
animation: avatar-bounce 0.5s linear !important;
}
@keyframes teste {
@keyframes avatar-bounce {
0%,
40% {
transform: scale(1);
Expand Down
14 changes: 7 additions & 7 deletions src/web-components/comments/css/float-button.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const floatButtonStyle = css`
}
.comments__floating-button:hover,
.comments__floating-button.isActive {
.comments__floating-button.is-active {
background-color: rgb(var(--sv-gray-400));
color: rgba(var(--sv-white));
}
Expand All @@ -48,12 +48,12 @@ export const floatButtonStyle = css`
display: none !important;
}
.isInactive:hover {
.is-inactive:hover {
width: 110px;
border-radius: 30px;
}
.isActive:hover {
.is-active:hover {
width: 92px;
border-radius: 30px;
animation: decrease-width 600ms linear;
Expand Down Expand Up @@ -89,11 +89,11 @@ export const floatButtonStyle = css`
width: 0;
}
.comments__floating-button.isInactive:hover .comments__floating-button-text-box {
.comments__floating-button.is-inactive:hover .comments__floating-button-text-box {
width: 61.45px;
}
.comments__floating-button.isActive:hover .comments__floating-button-text-box {
.comments__floating-button.is-active:hover .comments__floating-button-text-box {
width: 43.0833px;
}
Expand Down Expand Up @@ -122,7 +122,7 @@ export const floatButtonStyle = css`
}
.comments__floating-button:hover rect,
.isActive rect {
.is-active rect {
fill: rgba(var(--sv-white));
}
Expand All @@ -136,7 +136,7 @@ export const floatButtonStyle = css`
transform: rotate(90deg);
}
.isActive .cross {
.is-active .cross {
transform: translateY(-50%) rotate(45deg);
}
Expand Down

0 comments on commit 4aae39a

Please sign in to comment.