Repository navigation
Conversation
… DC-5) - Navigation: the top bar is sf-menu--navigation; the shell drops its own h-d0, radius-1, weight-5, radius-default and radius-rounded utilities and the grey current plate. The sidebar link colour rule is left as is for the separate fix on main. - Example frame and log heads are sf-tabs (underline, size 1) with sf-button tabs and sf-tabs-count; the shell tab indicator is removed. - Code blocks are a static Framework highlight: sf-highlight__head with the label in sf-highlight__language, size 1/2 head controls, sf-code-surface__scroll and sf-code-line rows with text numbers. - Static :::tree is sf-tree--static; :::steps is sf-procedure. - Contained icons are sf-featured-icon; the credit line takes Framework tokens and the shell CSS has no hex colours; the unused preferences menu rules are removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Taken into main as d3c71b2 and shipped in Docara 3.18.0 (https://github.com/simai/docara/releases/tag/v3.18.0). Closing as superseded. |
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.
Docara's own interface parts move onto SIMAI Framework parts (DC-1 to DC-5, letter msg-2d95500c, audit
docara-316-audit-study). Colours, heights, spacing and radii now come from Framework tokens and classes, and the shell CSS has no hex colours left.What changes
sf-menu--horizontal sf-menu--navigation, and its items are Framework menu elements. The shell no longer adds its ownh-d0,radius-1orweight-5utilities or the grey current plate.NavigationContextAdapterand the template view model dropradius-1andweight-5.radius-defaultandradius-rounded..docara-navigation-linkcolour rule (lines 1–3 ofnavigation.css) is deliberately left untouched. The Docara thread has the:not([aria-current])fix on its local main (d9214c0), so this branch does not conflict with it.sf-tabs sf-tabs--underline sf-tabs--size-1, withsf-tabs-top-containerandsf-tabs-top. The tabs aresf-buttonwithsf-button-text-container, and the log counts aresf-tabs-count.selected.sf-highlight sf-code-surfacewithdata-sf-highlight-chrome="static".sf-highlight__head. The language or file name sits insf-highlight__language, and the wrap and copy controls are size 1/2 icon buttons, as the Framework's own head draws them.sf-code-surface__scroll.sf-code-line,sf-code-line__number(the number is aria-hidden text, no longer generated content) andsf-code-line__content.:::treeissf-tree sf-tree--static(sf-tree-group,sf-tree-item,sf-tree-item-container,sf-tree-node-icon,sf-tree-item-name).:::stepsissf-procedurewithsf-procedure-step,--complete,--currentandsf-procedure-content(C194). The Framework numbers the steps..docara-tree*and.docara-step*CSS is removed.sf-featured-icon, with its size, square or circle shape, tone and soft or solid look.preferences.css, the menu-view rules (.docara-preferences-menu*) are deleted.git grepfinds nothing that produces them.templates/side-panel.php) still uses its first rules.Before and after (ui-doc, pair ui-078a4b4c6f6e, headless Chrome)
Measured on a scratch copy of ui-doc. The "before" build uses vendor docara 3.16.0 (78c3590, which equals base 68cbd1d for src and resources). The "after" build uses this branch. Tree, steps, the feature icon and numbered code are measured on a probe page built from the same page shell.
sf-tabs-count)::before→ text insf-code-line__numbersf-menu--documentation-tree)#505050/#F7F7F7/ colour-mix →--sf-on-surface-variant,--sf-surface-0tokenssf-procedurecounter 24; current step is now the Framework tintsf-featured-icon32, radius 4, icon 20The sidebar text after d9214c0 was measured on a build that omitted the colour rule, which is the state that commit produces.
Tests
vendor/bin/pint --testpasses.vendor/bin/phpunit tests/Unit: OK, 1023 tests, 18772 assertions, 5 skipped.tests/PortableDocumentationSiteTest.php: OK, 3 tests, 8938 assertions. The built file count moves 3309 → 3313 because pages now use Framework tabs, procedure, featured-icon and highlight parts.tests/PortableSiteBuilderTest.php: 60 of 61 pass.clean_cli_install_and_build_work_without_legacy_scaffoldhits its 60-second build timeout on this machine under load, and base origin/main times out the same way in a parallel run, so it is environmental.InitTemplateBuildTest,NotFoundPageBuildTestandPortableAuthorWorkflowTestpass: 12 tests.CodeBlockOptionsTest,PortableMarkdownRendererTest,FrameworkNativeSurfaceTest,PageExampleTest,SurfaceRuntimeTestandRendererFrameworkUtilityTest.RendererFrameworkUtilityTestnamessf-highlight__languageandsf-highlight__copyas Framework highlight runtime hooks: the script uses them and no CSS selects them.PageBuilderTestandSharedSurfaceAdoptionTestwere re-pinned. Their diffs against base contain only the intended changes: the droppedradius-default, the code head, the example tabs and the featured icon.Still open
data-titlehead. Docara writes the Framework head itself, in static chrome, and puts the file name insf-highlight__language.sf-code-line.data-linesruntime: the runtime cannot number a file region that does not start at 1..sf-text-1/2 + *gives the next head control a 16px top margin, which made the head 48 tall. Docara resets it with.docara-code-block>.sf-highlight__head>*{margin-block:0}. Framework's own runtime head has the same markup, so this needs a Framework fix.sf-icon-button--plain, so the copy button uses--linkuntil the repin.sf-menu--documentation-treelook, which no longer getsradius-1from the shell. Rounding it is a Framework decision.preferences.cssstays for the side panel.preferences.jsstill sets--docara-preferences-topand--docara-preferences-end, which are now unused. That is a leftover to remove separately.[Unreleased]. The Docara thread rebases it for 3.17.0.🤖 Generated with Claude Code