You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice that the sample contains an ai-button and above it are rendered 2 toggle buttons that control its state:
-- the "Hide/show the AI button"
-- the "Change the AI button state"
Click the "Hide/show the AI button" button to hide the ai-button
Click the "Change the AI button state" button to change the state
Click the "Hide/show the AI button" button to show the ai-button Expected: The text of the new state is clearly visible Actual: The text is not entirely visible, because the button is given css width="0px"
UI5 Web Components Version
2.0.1
Browser
Chrome
Additional Context:
Background why we need to update the button state while hidden:
In the dialog, click "Apply" and wait [few seconds] until the generation ends and the ai-button text becomes "Revise"
Click the "Close" button to close the dialog
Click the "Send" button at the footer => the user is notified that the message is sent and the form is cleared
Repeat step 2 to re-open the dialog to compose new text Expected: In the dialog, the text of the ai-button is "Apply" Actual: the text of the ai-button is not entirely visible
Additional info:
I tried the following
quick workaround in the Button.ts::_fadeOut function which seemed to fix the issue, but forwarding the case to your side for a complete inspection and solution:
Organization
No response
Declaration
I’m not disclosing any internal or sensitive information.
The text was updated successfully, but these errors were encountered:
Bug Description
The text of the button does not properly change while hidden, as can be reproduced in the isolated sample linked below.
Affected Component
ai-button
Isolated Example
https://stackblitz.com/edit/js-tq8tzo?file=index.js,index.html,style.css
Steps to Reproduce
-- the "Hide/show the AI button"
-- the "Change the AI button state"
Expected: The text of the new state is clearly visible
Actual: The text is not entirely visible, because the button is given css width="0px"
UI5 Web Components Version
2.0.1
Browser
Chrome
Additional Context:
Background why we need to update the button state while hidden:
The context can be seen in the following sample:
Expected: In the dialog, the text of the ai-button is "Apply"
Actual: the text of the ai-button is not entirely visible
Note that we tried as a workaround to update the text of the ai-button only when visible i.e. upon opening the dialog, as can be seen if the following sample: https://stackblitz.com/edit/js-abnqhe?file=index.js,index.html,style.css
However, if you follow the same steps to reproduce at sample https://stackblitz.com/edit/js-abnqhe?file=index.js,index.html,style.css you will notice at step 6 visible animation of the ai-button as it changes its text from "Revise" to "Generate" (unexpected to the user)
Additional info:
I tried the following
quick workaround in the Button.ts::_fadeOut function which seemed to fix the issue, but forwarding the case to your side for a complete inspection and solution:
Organization
No response
Declaration
The text was updated successfully, but these errors were encountered: