@@ -42,12 +42,15 @@ import type { CustomEventType } from '../../shared/components/element';
4242import type { RadioGroup } from '../../shared/components/radio/radio-group' ;
4343import type { GlSearchBox } from '../../shared/components/search/search-box' ;
4444import type { SearchNavigationEventDetail } from '../../shared/components/search/search-input' ;
45+ import { inlineCode } from '../../shared/components/styles/lit/base.css' ;
4546import { ipcContext } from '../../shared/contexts/ipc' ;
4647import type { TelemetryContext } from '../../shared/contexts/telemetry' ;
4748import { telemetryContext } from '../../shared/contexts/telemetry' ;
4849import { emitTelemetrySentEvent } from '../../shared/telemetry' ;
4950import { stateContext } from './context' ;
5051import { graphStateContext } from './stateProvider' ;
52+ import { actionButton , linkBase , ruleBase } from './styles/graph.css' ;
53+ import { graphHeaderControlStyles , progressStyles , repoHeaderStyles , titlebarStyles } from './styles/header.css' ;
5154import '@shoelace-style/shoelace/dist/components/option/option.js' ;
5255import '@shoelace-style/shoelace/dist/components/select/select.js' ;
5356import '../../shared/components/button' ;
@@ -100,10 +103,21 @@ function getSearchResultIdByIndex(results: GraphSearchResults, index: number): s
100103
101104@customElement ( 'gl-graph-header' )
102105export class GlGraphHeader extends SignalWatcher ( LitElement ) {
106+ static override styles = [
107+ inlineCode ,
108+ linkBase ,
109+ ruleBase ,
110+ actionButton ,
111+ titlebarStyles ,
112+ repoHeaderStyles ,
113+ graphHeaderControlStyles ,
114+ progressStyles ,
115+ ] ;
116+
103117 // FIXME: remove light DOM
104- protected override createRenderRoot ( ) : HTMLElement | DocumentFragment {
105- return this ;
106- }
118+ // protected override createRenderRoot(): HTMLElement | DocumentFragment {
119+ // return this;
120+ // }
107121
108122 @consume ( { context : ipcContext } )
109123 _ipc ! : typeof ipcContext . __context__ ;
@@ -711,7 +725,7 @@ export class GlGraphHeader extends SignalWatcher(LitElement) {
711725 Switch to Another Branch...
712726 < hr />
713727 < code-icon icon ="git-branch " aria-hidden ="true "> </ code-icon >
714- < span class ="md -code "> ${ this . hostState . branch ?. name } </ span > ${ when (
728+ < span class ="inline -code "> ${ this . hostState . branch ?. name } </ span > ${ when (
715729 this . hostState . branchState ?. worktree ,
716730 ( ) => html `< i > (in a worktree)</ i > ` ,
717731 ) }
@@ -756,7 +770,7 @@ export class GlGraphHeader extends SignalWatcher(LitElement) {
756770 < span slot ="content ">
757771 Create New Branch from
758772 < code-icon icon ="git-branch "> </ code-icon >
759- < span class ="md -code "> ${ this . hostState . branch ?. name } </ span >
773+ < span class ="inline -code "> ${ this . hostState . branch ?. name } </ span >
760774 </ span >
761775 </ gl-tooltip >
762776 < gl-tooltip placement ="bottom ">
0 commit comments