An open source design system that's fully customizable and agent ready
TypeScript
fix(core): align Tokenizer end content with field padding (#3178)
Durvesh Pilankarda2c60f1f7cf
diff --git a/.changeset/tokenizer-endsection-padding.md b/.changeset/tokenizer-endsection-padding.mdnew file mode 100644index 0000000000..d9d824696d--- /dev/null+++ b/.changeset/tokenizer-endsection-padding.md@@ -0,0 +1,6 @@+---+'@astryxdesign/core': patch+---++[fix] Tokenizer/PowerSearch: align end content (clear button, resultCount) with the field's inline padding instead of hugging the border (~3px). It now uses spacing-2 (8px) to match the text/start-icon inset (#2849)+@durvesh1992diff --git a/packages/core/src/Tokenizer/Tokenizer.tsx b/packages/core/src/Tokenizer/Tokenizer.tsxindex dbbfe170d4..335e158c0b 100644--- a/packages/core/src/Tokenizer/Tokenizer.tsx+++ b/packages/core/src/Tokenizer/Tokenizer.tsx@@ -222,7 +222,10 @@ const styles = stylex.create({},endSection: {position: 'absolute',- insetInlineEnd: `calc(${spacingVars['--spacing-1']} - 1px)`,+ // Match the field's inline padding (inputWrapperStyles.base uses+ // spacing-2) so end content (clear button, resultCount) lines up with+ // the text/start-icon inset instead of hugging the border at ~3px.+ insetInlineEnd: spacingVars['--spacing-2'],display: 'flex',alignItems: 'center',gap: spacingVars['--spacing-2'],