CustomizationProvider changing Chat-Composer:focus box shadow #3768
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
🤖 Hello @bfeldatwilio, I'm Dosu, a bot here to assist you with bugs, answer your questions, and guide you on becoming a contributor to Paste while you wait for a human maintainer. I'm here to help! I'll be taking a closer look at your issue regarding the CustomizationProvider and the ChatComposer:focus box shadow and will provide you with a full answer shortly. |
Beta Was this translation helpful? Give feedback.
-
Disclaimer: This is a very experimental bot using OpenAI's GPT-4. The answers may not be correct, a human will review the answer and update it if necessary. Sorry, I don't know how to help with that. I did do a search though, and I managed to find these other Discussions that might be similar or related to your question. Give them a read to see if they answer your question. If they do, head back here and update this discussion and mark it as answered, pointing others to the related discussion:
|
Beta Was this translation helpful? Give feedback.
-
🤖 The The shadow-focus:
value: "{!offset-0} {!offset-0} {!offset-0} {!offset-20} {!palette-gray-60}"
comment: Shadow for focus ring on interactive elements. This means that when an element is in focus, it will have a box shadow with an offset of 0 in all directions, a blur radius of 20 (as defined by If you want to prevent the import {CustomizationProvider} from '@twilio-paste/core/customization';
const customTheme = {
shadows: {
shadowFocus: 'none',
},
};
<CustomizationProvider theme={customTheme}>
<ChatComposer />
</CustomizationProvider> In this example, the You can find more information about the Sources
|
Beta Was this translation helpful? Give feedback.
🤖
The
CustomizationProvider
in Twilio's Paste design system is altering the:focus
box shadow of theChatComposer
because it uses theshadow-focus
property defined in the design tokens. This property is used to provide a consistent focus state across all interactive elements in the design system.The
shadow-focus
property is defined as follows in the provided YAML file:This means that when an element is in focus, it will have a box shadow with an offset of 0 in all directions, a blur radius of 20 (as defined by
!offset-20
), and a color of …