diff options
Diffstat (limited to 'packages/ui/src/pierre')
| -rw-r--r-- | packages/ui/src/pierre/index.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/ui/src/pierre/index.ts b/packages/ui/src/pierre/index.ts index 0d9092c21..16bc08f86 100644 --- a/packages/ui/src/pierre/index.ts +++ b/packages/ui/src/pierre/index.ts @@ -6,6 +6,7 @@ export type DiffProps<T = {}> = FileDiffOptions<T> & { after: FileContents annotations?: DiffLineAnnotation<T>[] selectedLines?: SelectedLineRange | null + commentedLines?: SelectedLineRange[] onRendered?: () => void class?: string classList?: ComponentProps<"div">["classList"] @@ -42,6 +43,15 @@ const unsafeCSS = ` background-color: var(--diffs-bg-selection-text); } +[data-diffs] [data-comment-selected] { + background-color: var(--diffs-bg-selection); +} + +[data-diffs] [data-comment-selected] [data-column-number] { + background-color: var(--diffs-bg-selection-number); + color: var(--diffs-selection-number-fg); +} + [data-diffs-header], [data-diffs] { [data-separator-wrapper] { |
