Skip to content

[Agent Builder] Decrease base font sizes in chat UI. - #283254

Merged
ryankeairns merged 13 commits into
mainfrom
rk/ab-font-sizes
Aug 11, 2026
Merged

[Agent Builder] Decrease base font sizes in chat UI.#283254
ryankeairns merged 13 commits into
mainfrom
rk/ab-font-sizes

Conversation

@ryankeairns

@ryankeairns ryankeairns commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Tighten Agent Builder chat typography and spacing so the conversation UI feels more consistent with the rest of Kibana.

Changes

  • Reduce chat message and markdown text from m to s
  • Reduce composer/editor font size from m to s
  • Shrink conversation header height (8864) and more-actions button size (ms)
  • Use smaller control sizes for input popover buttons and round metadata trigger (xs)
  • Tighten round response/input spacing and padding
  • Align thinking/tool-call step layout, expansion chevrons, and copy (drop trailing periods)
  • Simplify to-dos header and adjust its padding/type size
  • fix: Use canvas-specific attachment header radius (0 4px 0 0)
  • fix: Remove sidebar right border; minor connector selector and new-conversation prompt tweaks
Screenshots
CleanShot 2026-08-06 at 10 58 26@2x CleanShot 2026-08-06 at 10 57 47@2x CleanShot 2026-08-06 at 11 00 02@2x CleanShot 2026-08-06 at 11 16 05@2x

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

  • Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support
  • Documentation was added for features that require explanation or tutorials
  • Unit or functional tests were updated or added to match the most common scenarios
  • If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the docker list
  • This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The release_note:breaking label should be applied in these situations.
  • Flaky Test Runner was used on any tests changed
  • The PR description includes the appropriate Release Notes section, and the correct release_note:* label is applied per the guidelines
  • Review the backport guidelines and apply applicable backport:* labels.

Identify risks

Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ryankeairns ryankeairns added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting v9.6.0 labels Aug 6, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@ryankeairns
ryankeairns marked this pull request as ready for review August 6, 2026 19:05
@ryankeairns
ryankeairns requested a review from a team as a code owner August 6, 2026 19:05
…copy change.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…tatus text.

Co-authored-by: Cursor <cursoragent@cursor.com>
@kibanamachine kibanamachine added the reviewer:scout Agentic PR Scout test review label Aug 6, 2026
@ryankeairns
ryankeairns enabled auto-merge (squash) August 7, 2026 00:29
: euiTheme.colors.backgroundBasePlain};
min-height: ${isCollapsed ? '0' : INPUT_MIN_HEIGHT};
padding: ${euiTheme.size.base} ${euiTheme.size.base} ${euiTheme.size.s} ${euiTheme.size.base};
padding: ${euiTheme.size.base};

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Evens out the padding in the conversation input.

closePopover={closePopover}
panelPaddingSize="xs"
anchorPosition="downCenter"
panelPaddingSize="none"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This was causing double padding

import {
EuiBadge,
EuiButtonEmpty,
EuiButton,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Results in a bordered button which looks better at full-width than the prior empty button (label floating in center of footer).


describe('ToolCallGroup', () => {
it('shows "N tools ran." once every step in the group has a result', () => {
it('shows "N tools ran" once every step in the group has a result', () => {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Opinionated change :)
I felt the periods were unnecessary and, visually, it looks better to remove them.

</EuiText>
);

const expansionStyles = css`

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The extra padding make for an awkward alignment. Now flush left like other tool calls.

responsive={false}
gutterSize="xs"
alignItems="center"
alignItems="baseline"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

With the smaller font sizes, this makes for better vertical alignment between badge and adjacent text.


return (
<EuiFlexGroup direction="column" gutterSize="s" data-test-subj="agentBuilderThinkingPanel">
<EuiFlexGroup direction="column" data-test-subj="agentBuilderThinkingPanel">

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Add some vertical spacing in this section now that the font size is smaller; make it less dense.

<EuiFlexItem grow={false}>
<EuiIcon
type={isExpanded ? 'arrowUp' : 'arrowDown'}
type={isExpanded ? 'chevronSingleDown' : 'chevronSingleRight'}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Prefer arrow to point down when open/expanded and right when closed/collapsed.

onClosePreview={action('close preview')}
/>
<EuiSplitPanel.Inner grow={false} paddingSize="none">
<EuiSplitPanel.Inner

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

UI bug; mismatched border-radius between container and content.

text-overflow: ellipsis;
`;

const headerBorderRadius = isCanvas

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

UI bug. When showing the attachment UI in the canvas, the header should not have a bottom border radius.

ol > li > p {
margin-bottom: ${euiTheme.size.s};
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This probably needs to be fixed/changed in EUI, but it helps here in the meantime. Feedback in the Slack channel notes that the bullet lists - within responses - were vertically crowded.

<EuiButtonEmpty
iconType="clock"
size="s"
size="xs"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Made smaller to match size of adjacent buttons

return (
<EuiFlexGroup
direction="row"
direction="rowReverse"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Move button group to right edge. I felt this improves scanability down the left side of the chat by having one less thing over there. Also, seems like a more natural, common position for such actions (see Cursor).

import type { EuiThemeComputed } from '@elastic/eui';

export const headerHeight = 88;
export const headerHeight = 64;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Decrease to match height of side menu header.

@kibanamachine

Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Scout Lane #59 - serverless-observability_complete / default / local-serverless-observability_complete - Observability Landing Page - redirects to APM services when only APM data exists
  • [job] [logs] Scout Lane #59 - serverless-observability_complete / default / local-serverless-observability_complete - Observability Landing Page - redirects to onboarding when log data that should be ignored exists
  • [job] [logs] Scout Lane #59 - serverless-observability_complete / default / local-serverless-observability_complete - Observability Landing Page - redirects to onboarding when no data exists
  • [job] [logs] Jest Integration Tests #5 / workflow with wait step when duration is short should have correct workflow duration

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
shared-packages 4.2MB 4.2MB -42.0B
shared-plugins 11.8MB 11.8MB +264.0B
total +222.0B
Unknown metric groups

shared async chunks total size

id before after diff
all 14.5MB 14.5MB -87.0B

total optimizer output size

id before after diff
all 61.5MB 61.5MB +135.0B

History

@ryankeairns
ryankeairns merged commit 5b90124 into main Aug 11, 2026
38 checks passed
@ryankeairns
ryankeairns deleted the rk/ab-font-sizes branch August 11, 2026 04:39
qn895 pushed a commit to qn895/kibana that referenced this pull request Aug 11, 2026
## Summary
Tighten Agent Builder chat typography and spacing so the conversation UI
feels more consistent with the rest of Kibana.

## Changes
- Reduce chat message and markdown text from `m` to `s`
- Reduce composer/editor font size from `m` to `s`
- Shrink conversation header height (`88` → `64`) and more-actions
button size (`m` → `s`)
- Use smaller control sizes for input popover buttons and round metadata
trigger (`xs`)
- Tighten round response/input spacing and padding
- Align thinking/tool-call step layout, expansion chevrons, and copy
(drop trailing periods)
- Simplify to-dos header and adjust its padding/type size
- fix: Use canvas-specific attachment header radius (`0 4px 0 0`)
- fix: Remove sidebar right border; minor connector selector and
new-conversation prompt tweaks

##### Screenshots

<img width="3172" height="1930" alt="CleanShot 2026-08-06 at 10 58
26@2x"
src="https://github.com/user-attachments/assets/62b87ff8-580b-4d12-abba-6bd3326acd45"
/>

<img width="3172" height="1930" alt="CleanShot 2026-08-06 at 10 57
47@2x"
src="https://github.com/user-attachments/assets/b41de9dc-97d4-4a85-91cf-25625588eca4"
/>

<img width="3172" height="1930" alt="CleanShot 2026-08-06 at 11 00
02@2x"
src="https://github.com/user-attachments/assets/943e7575-52af-44fc-b272-3c5aeed7ea73"
/>

<img width="3172" height="1930" alt="CleanShot 2026-08-06 at 11 16
05@2x"
src="https://github.com/user-attachments/assets/051923cb-aa53-42eb-8188-5a5c9e5265df"
/>


### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/docs/extend/kibana/contributing/workflow/how-we-use-github#release-notes)
- [ ] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request Aug 18, 2026
## Summary
Tighten Agent Builder chat typography and spacing so the conversation UI
feels more consistent with the rest of Kibana.

## Changes
- Reduce chat message and markdown text from `m` to `s`
- Reduce composer/editor font size from `m` to `s`
- Shrink conversation header height (`88` → `64`) and more-actions
button size (`m` → `s`)
- Use smaller control sizes for input popover buttons and round metadata
trigger (`xs`)
- Tighten round response/input spacing and padding
- Align thinking/tool-call step layout, expansion chevrons, and copy
(drop trailing periods)
- Simplify to-dos header and adjust its padding/type size
- fix: Use canvas-specific attachment header radius (`0 4px 0 0`)
- fix: Remove sidebar right border; minor connector selector and
new-conversation prompt tweaks

##### Screenshots

<img width="3172" height="1930" alt="CleanShot 2026-08-06 at 10 58
26@2x"
src="https://github.com/user-attachments/assets/62b87ff8-580b-4d12-abba-6bd3326acd45"
/>

<img width="3172" height="1930" alt="CleanShot 2026-08-06 at 10 57
47@2x"
src="https://github.com/user-attachments/assets/b41de9dc-97d4-4a85-91cf-25625588eca4"
/>

<img width="3172" height="1930" alt="CleanShot 2026-08-06 at 11 00
02@2x"
src="https://github.com/user-attachments/assets/943e7575-52af-44fc-b272-3c5aeed7ea73"
/>

<img width="3172" height="1930" alt="CleanShot 2026-08-06 at 11 16
05@2x"
src="https://github.com/user-attachments/assets/051923cb-aa53-42eb-8188-5a5c9e5265df"
/>


### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/docs/extend/kibana/contributing/workflow/how-we-use-github#release-notes)
- [ ] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request Aug 18, 2026
## Summary
Tighten Agent Builder chat typography and spacing so the conversation UI
feels more consistent with the rest of Kibana.

## Changes
- Reduce chat message and markdown text from `m` to `s`
- Reduce composer/editor font size from `m` to `s`
- Shrink conversation header height (`88` → `64`) and more-actions
button size (`m` → `s`)
- Use smaller control sizes for input popover buttons and round metadata
trigger (`xs`)
- Tighten round response/input spacing and padding
- Align thinking/tool-call step layout, expansion chevrons, and copy
(drop trailing periods)
- Simplify to-dos header and adjust its padding/type size
- fix: Use canvas-specific attachment header radius (`0 4px 0 0`)
- fix: Remove sidebar right border; minor connector selector and
new-conversation prompt tweaks

##### Screenshots

<img width="3172" height="1930" alt="CleanShot 2026-08-06 at 10 58
26@2x"
src="https://github.com/user-attachments/assets/62b87ff8-580b-4d12-abba-6bd3326acd45"
/>

<img width="3172" height="1930" alt="CleanShot 2026-08-06 at 10 57
47@2x"
src="https://github.com/user-attachments/assets/b41de9dc-97d4-4a85-91cf-25625588eca4"
/>

<img width="3172" height="1930" alt="CleanShot 2026-08-06 at 11 00
02@2x"
src="https://github.com/user-attachments/assets/943e7575-52af-44fc-b272-3c5aeed7ea73"
/>

<img width="3172" height="1930" alt="CleanShot 2026-08-06 at 11 16
05@2x"
src="https://github.com/user-attachments/assets/051923cb-aa53-42eb-8188-5a5c9e5265df"
/>


### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/docs/extend/kibana/contributing/workflow/how-we-use-github#release-notes)
- [ ] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
@ryankeairns ryankeairns added the design-only Can be handled solely by a design team member label Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting design-only Can be handled solely by a design team member release_note:skip Skip the PR/issue when compiling release notes reviewer:scout Agentic PR Scout test review v9.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants