Skip to content

Add end slot to spright chat conversation #2899

Open
OliverCosma wants to merge 9 commits intomainfrom
users/ocosma/add-end-slot-for-disclaimer
Open

Add end slot to spright chat conversation #2899
OliverCosma wants to merge 9 commits intomainfrom
users/ocosma/add-end-slot-for-disclaimer

Conversation

@OliverCosma
Copy link
Contributor

@OliverCosma OliverCosma commented Mar 17, 2026

Pull Request

🤨 Rationale

Adding an "end" slot in spright conversation so that consumer apps can add content aligned below the input slot (such as disclaimers, privacy policies)

👩‍💻 Implementation

used start slot as reference

🧪 Testing

Added tests + manually checked in storybook

✅ Checklist

  • I have updated the project documentation to reflect my changes or determined no changes are needed.

@OliverCosma OliverCosma marked this pull request as ready for review March 18, 2026 13:51
display: none;
}

.end {
Copy link
Contributor

Choose a reason for hiding this comment

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

I noticed that Figma shows a grey horizontal line between the disclaimer and the chat input. Could you add that? I think it could just be some border styling on the end div (though need to make sure it doesn't show up if nothing is slotted).

Current implementation
Image

Figma
Image

I originally went to Figma to see if it shows as much vertical padding above the disclaimer as we do. It turns out it does. It feels like a lot to me but I think we should follow the design and adjust if we get feedback.

https://www.figma.com/design/PO9mFOu5BCl8aJvFchEeuN/Nimble_Components?m=auto&node-id=16597-51622&t=ODxJlz2AjPfyvGk9-1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a border-top here. However, I was not that pleased with the vertical padding - it looked like the disclaimer had a larger height compared with the space between the input and the border so I've set the end slot' padding to be 2px - let me know what you think.

with 4px padding for disclaimer (as before) + border top
image

and with 2px + border top
image

I think we could "solve" this with a smaller font for the text, but I couldn't find something suitable and I don't think we should add a new one now.

@OliverCosma OliverCosma requested a review from jattasNI March 19, 2026 10:01
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.

2 participants