Repository navigation
Lay out dl.facts only in the reading theme, so a page without it keeps its own - #5421
Merged
Merged
Conversation
…eps its own Core `reading.css` laid out every `dl.facts` and `dl.lf-facts` alike (#4889), so a page initialized without a theme that used the class `facts` for its own layout had its cards turned into a two-column grid with `div`s shown as contents. The editorial plain-page fixture drew four 177px tracks where its author wrote three 244px cards (#5089). Core now styles only Leaf's own `dl.lf-facts`; the reading theme, which declares the `.facts` idiom in its registry, gives `dl.facts` the same layout. Under the reading theme nothing changes on screen; a page with no theme or another theme keeps the `.facts` its author wrote. The plain-page test drops the `dl.facts` half of the `class-vocabulary` obstacle and the editorial page's pin, so it now passes rather than xfails. Closes #5089
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Core
reading.cssnow lays out only Leaf's owndl.lf-facts; the reading theme'sdefaults.cssgivesdl.factsthe same layout. A page initialized without a theme keeps theclass="facts"layout its author wrote, as @max-sixty decided in #5089.Since #4889, the core rule
dl:is(.facts, .lf-facts)reached every page, so the editorial plain-page fixture's three 244px cards became four 177px grid tracks with theirdivs shown as contents..factsis already the reading package's registry idiom, so its layout now lives with it, the way #5288 gave Leaf's own controlslf-names.What changes on screen: nothing under the reading theme; a page with no theme, or another theme, no longer takes Leaf's facts grid. The worktree details in the diff package's example and an option's
.factsrail keep their layout under the reading theme, as before.Verification:
tests/journeys/test_plain_pages.py::test_an_ordinary_page_is_drawn_as_written:editorialfailed on main (Editorial definition-list grid overrides authored columns #5089) and passes here. Itsclass-vocabularypin and thedl.factshalf of that obstacle are removed;formstill xfails on the.choicehalf.leaf-dev stillsforpage-about,worktree-startup,ship-review,live-progress,alert-review,visual-review-inspectionandplan-option-picked: six unchanged.page-aboutdiffers only in the About dialog's version text, which reports a dirty tree; itslf-factslists draw identically.tests/browser/test_render_options.py: 47 pass. Two fail identically on unchanged main (test_a_quoted_widget_exhibits_without_taking_input,test_a_thread_obligations_done_press_keeps_its_keys_and_one_workflow).Closes #5089