Skip to content

Commit 85db8ed

Browse files
Mirage20LakshanSS
authored andcommitted
fix: restore Ask AI submit and stop button colors in light theme
The adapter aliases --docsearch-sidepanel-white to --ifm-background-color, which Infima sets to `transparent` in its light theme. That leaves the submit button arrow (SVG stroke="currentColor") invisible and the stop button (shown while a response streams) with a transparent background. In dark mode the variable resolves to a solid color, so rendering is already fine — scope the override to light theme only. Refs: openchoreo/openchoreo#3194 Signed-off-by: Miraj Abeysekara <miraj@wso2.com>
1 parent 881c367 commit 85db8ed

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/css/custom.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,3 +296,18 @@ html[data-theme='dark'] {
296296
.DocSearch-Sidepanel-Container.inline.side-left.is-open {
297297
transform: none !important;
298298
}
299+
300+
/* Hotfix for Ask AI submit and stop buttons in the light theme.
301+
*
302+
* The adapter aliases --docsearch-sidepanel-white to --ifm-background-color,
303+
* which Infima sets to `transparent` in its light theme. That leaves the
304+
* submit button arrow (SVG stroke="currentColor") invisible and the stop
305+
* button (shown while a response streams) with a transparent background.
306+
* In dark mode, Infima resolves the var to a solid color, so the existing
307+
* rendering is fine — scope the override to light theme only. */
308+
html:not([data-theme='dark']) .DocSearch-Sidepanel-Prompt--submit {
309+
color: #fff;
310+
}
311+
html:not([data-theme='dark']) .DocSearch-Sidepanel-Prompt--stop {
312+
background-color: #fff;
313+
}

0 commit comments

Comments
 (0)