@@ -133,14 +133,12 @@ export interface McpInstallButtonProps {
133133 serverUrl ?: string ;
134134 /** Server name. If not provided, uses plugin configuration. */
135135 serverName ?: string ;
136- /** Button label. If not provided, shows only the MCP icon. */
136+ /** Button label (default: "Install docs MCP") */
137137 label ?: string ;
138138 /** Optional className for styling */
139139 className ?: string ;
140140 /** Clients to show. Defaults to all HTTP-capable clients from registry. */
141141 clients ?: ClientId [ ] ;
142- /** Header text shown at top of dropdown (default: "Choose your AI tool:") */
143- headerText ?: string ;
144142}
145143
146144/**
@@ -158,10 +156,9 @@ export interface McpInstallButtonProps {
158156export function McpInstallButton ( {
159157 serverUrl : serverUrlProp ,
160158 serverName : serverNameProp ,
161- label,
159+ label = 'Install docs MCP' ,
162160 className = '' ,
163161 clients : clientsProp ,
164- headerText = 'Choose your AI tool:' ,
165162} : McpInstallButtonProps ) {
166163 const [ isOpen , setIsOpen ] = useState ( false ) ;
167164 const [ copiedClient , setCopiedClient ] = useState < string | null > ( null ) ;
@@ -284,20 +281,19 @@ export function McpInstallButton({
284281 < div ref = { dropdownRef } className = { dropdownClasses } >
285282 { /* Infima button classes */ }
286283 < button
287- className = { ` button button--primary mcp-install-dropdown__button${ label ? '' : ' mcp-install-dropdown__button--icon-only' } ` }
284+ className = " button button--primary mcp-install-dropdown__button"
288285 onClick = { ( ) => setIsOpen ( ! isOpen ) }
289286 aria-expanded = { isOpen }
290287 aria-haspopup = "true"
291- aria-label = { label || 'Install MCP' }
292288 >
293289 < IconMcp size = { 16 } />
294- { label && < span > { label } </ span > }
290+ < span > { label } </ span >
295291 < IconChevron isOpen = { isOpen } />
296292 </ button >
297293
298294 { /* Dropdown menu using Infima classes */ }
299295 < ul className = "dropdown__menu mcp-install-dropdown__menu" >
300- < li className = "mcp-install-dropdown__header" > { headerText } </ li >
296+ < li className = "mcp-install-dropdown__header" > Choose your AI tool: </ li >
301297
302298 { clientConfigs . map ( ( client ) => {
303299 const command = getCommandForClient ( client . id ) ;
@@ -354,21 +350,9 @@ export function McpInstallButton({
354350 < style > { `
355351 .mcp-install-dropdown {
356352 --mcp-dropdown-width: 520px;
357- /* Light mode: grey code blocks */
358- --mcp-code-bg: #f3f4f6;
359- --mcp-code-color: #374151;
360- --mcp-copy-bg: #e5e7eb;
361- --mcp-copy-bg-hover: #d1d5db;
362- --mcp-copy-color: #6b7280;
363- }
364-
365- /* Dark mode: dark code blocks */
366- [data-theme='dark'] .mcp-install-dropdown {
353+ /* Always use dark code blocks for consistency across themes */
367354 --mcp-code-bg: #1e1e1e;
368355 --mcp-code-color: #e5e7eb;
369- --mcp-copy-bg: #374151;
370- --mcp-copy-bg-hover: #4b5563;
371- --mcp-copy-color: #9ca3af;
372356 }
373357
374358 .mcp-install-dropdown__button {
@@ -377,11 +361,6 @@ export function McpInstallButton({
377361 gap: 0.5rem;
378362 }
379363
380- .mcp-install-dropdown__button--icon-only {
381- padding: 0.5rem 0.75rem;
382- gap: 0.25rem;
383- }
384-
385364 .mcp-install-dropdown__menu {
386365 width: var(--mcp-dropdown-width);
387366 padding: 0;
@@ -481,15 +460,15 @@ export function McpInstallButton({
481460 align-items: center;
482461 justify-content: center;
483462 width: 2.75rem;
484- background-color: var(--mcp-copy-bg );
463+ background-color: var(--ifm-color-gray-800, #374151 );
485464 border: none;
486465 cursor: pointer;
487- color: var(--mcp-copy- color);
466+ color: var(--ifm- color-gray-400, #9ca3af );
488467 transition: background-color var(--ifm-transition-fast);
489468 }
490469
491470 .mcp-code-block__copy:hover {
492- background-color: var(--mcp-copy-bg-hover );
471+ background-color: var(--ifm-color-gray-700, #4b5563 );
493472 }
494473
495474 .mcp-code-block__icon {
0 commit comments