Skip to content

Adjust theme to enable light mode - #137

Open
jonathonherbert wants to merge 2 commits into
mainfrom
jsh/adjust-theme
Open

Adjust theme to enable light mode#137
jonathonherbert wants to merge 2 commits into
mainfrom
jsh/adjust-theme

Conversation

@jonathonherbert

Copy link
Copy Markdown
Contributor

What does this change?

Adjusts the theme to add enough styling to enable light mode.

Screenshot 2026-07-19 at 20 19 17

A breaking change, as the API for the theme changes. I think it's worth breaking, as the theme structure before was not consistent, and it's trivial to adapt.

How has this change been tested?

Tested in https://github.com/guardian/capi.gutools, where I took the screenshot.

@jonathonherbert jonathonherbert self-assigned this Jul 19, 2026
@jonathonherbert
jonathonherbert requested a review from Copilot July 19, 2026 19:20
@jonathonherbert jonathonherbert added the feature Departmental tracking: work on a new feature label Jul 19, 2026
@github-actions

github-actions Bot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR restructures the CQL input theming API to better support light mode by introducing a base text color and nesting input-related styling in a more consistent shape.

Changes:

  • Adds a top-level theme.color.text and threads it into key CSS containers.
  • Restructures the theme shape so placeholder and chip styling are nested under theme.input (and chip content/handle under input.chipWrapper).
  • Exports CqlTheme from the library entrypoint for external consumers.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
lib/cql/src/lib.ts Re-exports CqlTheme from the public barrel.
lib/cql/src/cqlInput/theme.ts Updates the CqlTheme shape and default theme values to support base text theming and new nesting.
lib/cql/src/cqlInput/CqlInput.ts Adapts template/theme destructuring and applies base text color to additional containers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/cql/src/lib.ts
CqlStr,
CqlField,
} from "./lang/ast.ts";
export type { CqlTheme } from './cqlInput/theme.ts'; No newline at end of file
Comment on lines 398 to 402
.Cql__TypeaheadPopoverContainer, .Cql__ErrorPopover {
color: ${baseColor.text};
position: absolute;
min-width: ${typeahead.layout.minWidth};
margin: 0;
Comment on lines +98 to +103
chipHandle: {
color: {
background: "#3737378f",
border: "none",
},
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Departmental tracking: work on a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants