Skip to content

feat(ew): move chat's AI disclaimer outside its bordered body#1076

Open
magdalenaorlowska wants to merge 1 commit into
adobe:mainfrom
magdalenaorlowska:ewdisc
Open

feat(ew): move chat's AI disclaimer outside its bordered body#1076
magdalenaorlowska wants to merge 1 commit into
adobe:mainfrom
magdalenaorlowska:ewdisc

Conversation

@magdalenaorlowska

Copy link
Copy Markdown
Contributor

Description

Sets chat.styled = true on the nx-chat element created for the canvas chat panel, opting into nx-chat's self-styled mode. No other change is needed here — the surrounding panel automatically drops its own background/border once it contains a self-styled element.

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Sets `chat.styled = true` on the nx-chat element created for the canvas chat panel, opting into nx-chat's self-styled mode.
No other change is needed here — the surrounding panel automatically drops its own background/border once it contains a self-styled element.
Comment thread blocks/canvas/canvas.js
await import(`${getNx()}/blocks/chat/chat.js`);
return document.createElement('nx-chat');
const chat = document.createElement('nx-chat');
chat.styled = true;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this reads oddly, styled = true doesn't say what it does. the nx-chat prop is a boolean, can we rename it to something like isPanel on the nx side and set chat.isPanel = true here?

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