Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .release-it.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,16 @@ module.exports = () => {
},

recommendedBump: true,
whatBump: (commits) => {
whatBump: commits => {
let isMajor = false;
let isMinor = false;
let isPatch = false;

for (const commit of commits) {
const hasBreaking = Boolean(commit.breaking) || (commit.notes && commit.notes.some(n => /BREAKING[ -]CHANGE/i.test(n.title || n.text || "")));
const hasBreaking =
Boolean(commit.breaking) ||
(commit.notes &&
commit.notes.some(n => /BREAKING[ -]CHANGE/i.test(n.title || n.text || "")));
if (hasBreaking) {
isMajor = true;
break;
Expand Down
6 changes: 6 additions & 0 deletions src/components/TextField/text-field.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "../../styles/mixins" as dir;

$root: text-field;

.#{$root} {
Expand All @@ -16,6 +18,10 @@ $root: text-field;
box-shadow var(--transition-speed-sm),
background var(--transition-speed-sm);

@include dir.rtl {
flex-direction: row-reverse;
}

&:has(&__input:focus) {
border-color: var(--text-field-focus-border-color, color-mix(in srgb, white 40%, var(--primary-color)));
box-shadow: var(--text-field-focus-shadow, 0 0 4px var(--primary-color));
Expand Down
3 changes: 3 additions & 0 deletions src/components/Truncate/Truncate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ const Truncate: ForwardRefRenderFunction<HTMLSpanElement, TruncateProps> = (prop
observer.observe(el);
}

window.addEventListener("resize", measureAndTrim);

return () => {
window.removeEventListener("resize", measureAndTrim);
observer?.disconnect();
cancelAnimationFrame(animationFrameId);
};
Expand Down
Loading