Skip to content

Conversation

@MartinCupela
Copy link
Contributor

@MartinCupela MartinCupela commented Jan 14, 2026

🎯 Goal

Add new low-level Button component and corresponding styles.

🛠 Implementation details

We can achieve different default button styles by combining the following groups of CSS classes:

  1. Hierarchy (in some way)
    str-chat__button--primary / str-chat__button--secondary / str-chat__button--destructive

  2. Look
    str-chat__button--solid / str-chat__button--outline / str-chat__button--ghost

  3. Shadow
    str-chat__button--floating

Buttons also change upon:

  1. :hover
  2. :active
  3. :focus-visible
  4. :disabled

🎨 UI Changes

figma

button-styling

@github-actions
Copy link

github-actions bot commented Jan 14, 2026

Size Change: +638 B (+0.22%)

Total Size: 290 kB

Filename Size Change
./dist/cjs/index.js 166 kB +378 B (+0.23%)
./dist/css/index.css 6.16 kB +260 B (+4.41%)
ℹ️ View Unchanged
Filename Size
./dist/audioProcessing-BbOs2wMd.js 1.32 kB
./dist/Channel-pqo4jV1s.js 24.4 kB
./dist/ChannelPreview-BNyNO58P.js 17.8 kB
./dist/cjs/emojis.js 3.29 kB
./dist/cjs/experimental.js 5.8 kB
./dist/cjs/mp3-encoder.js 1.27 kB
./dist/css/v2/emoji-mart.css 1.84 kB
./dist/css/v2/emoji-replacement.css 300 B
./dist/css/v2/index.css 39.4 kB
./dist/css/v2/index.layout.css 22.8 kB
./dist/MessageInputContext-Buw2XInb.js 314 B

compressed-size-action

@MartinCupela MartinCupela force-pushed the feat/add-generic-button branch from ea082d9 to 9ced247 Compare January 15, 2026 09:28
@codecov
Copy link

codecov bot commented Jan 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.13%. Comparing base (4bc9ac4) to head (0b3cbcd).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2914      +/-   ##
==========================================
+ Coverage   80.02%   80.13%   +0.11%     
==========================================
  Files         506      511       +5     
  Lines       10777    10788      +11     
  Branches     2709     2709              
==========================================
+ Hits         8624     8645      +21     
+ Misses       1900     1890      -10     
  Partials      253      253              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment on lines 2 to 8
box-sizing: border-box;
font-family: var(--typography-font-family-sans), system-ui, -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, sans-serif;
font-size: var(--typography-font-size-md);

* {
box-sizing: border-box;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
box-sizing: border-box;
font-family: var(--typography-font-family-sans), system-ui, -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, sans-serif;
font-size: var(--typography-font-size-md);
* {
box-sizing: border-box;
}
font-family: var(--typography-font-family-sans), system-ui, -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, sans-serif;
font-size: var(--typography-font-size-md);

We shouldn't need these as these should be part of the modern-normalize package.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done: 0b3cbcd

@MartinCupela MartinCupela merged commit f4675c6 into master Jan 15, 2026
7 checks passed
@MartinCupela MartinCupela deleted the feat/add-generic-button branch January 15, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants