mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-02 20:59:56 -05:00
style: spell it "color" everywhere
283 occurrences across 23 files, all of them mine and all of them in the theme/UI work: comments, test names, and a handful of local identifiers (`colours`, `roleColours`, `awaitColoured`) plus one test fixture tag named 'Uncoloured'. Nothing was required to keep the other spelling. Checked before replacing: no CSS custom property or class name contains it, no library prop or API key does, and every string holding it is a test name or our own copy. The renamed identifiers were checked for collisions with an existing `color`/`colors` in the same file first -- there were none. Verified as a pure rename: 262 lines changed, and normalising the spelling on every removed line reproduces the added line exactly, for all 262. So the diff contains no other edit hiding in it. 1134 jest / 64 suites, 271 cypress component tests with the same 12 pre-existing Semantic-era failures in Tags/Channels/Download/Inventory, clean npm run build.
This commit is contained in:
parent
f997f730e1
commit
99f0bcc6bc
23 changed files with 262 additions and 262 deletions
|
|
@ -116,7 +116,7 @@ const NavDropdownTrigger = React.forwardRef(({text, className, ...props}, ref) =
|
|||
* `className` is pulled out and MERGED, never spread over. Menu.Target clones its child
|
||||
* and hands it a className of its own, and a `{...props}` spread placed after the
|
||||
* attribute replaces ours with it -- which left the real More button with no class at
|
||||
* all, so it rendered as a bare grey UA button instead of taking the bar's colour, its
|
||||
* all, so it rendered as a bare grey UA button instead of taking the bar's color, its
|
||||
* padding and its hover. The hidden placeholder is not cloned by Menu.Target, so it
|
||||
* kept its class and measured wider than the button that actually drew.
|
||||
*/
|
||||
|
|
@ -205,7 +205,7 @@ export function NavBar() {
|
|||
const navColor = useNavColorSetting();
|
||||
/*
|
||||
* The bar's foreground is measured against the background the theme resolved for the
|
||||
* user's colour, not taken from a single token. See themes/navColors.
|
||||
* user's color, not taken from a single token. See themes/navColors.
|
||||
*/
|
||||
const navColors = useNavColors(navColor);
|
||||
const wrolpiIcon = <img src='/icon.svg' height='32px' width='32px' alt='WROLPi Home Icon'/>;
|
||||
|
|
@ -241,9 +241,9 @@ export function NavBar() {
|
|||
if (memoryPercent > 80) {
|
||||
const color = memoryPercent > 90 ? highWarningColor : lowWarningColor;
|
||||
{/*
|
||||
The colour goes on the Icon, as it does for every other indicator. It used to
|
||||
The color goes on the Icon, as it does for every other indicator. It used to
|
||||
be passed to `Link`, which ignores it, so the memory warning never actually
|
||||
changed colour -- 81% and 95% looked identical.
|
||||
changed color -- 81% and 95% looked identical.
|
||||
*/}
|
||||
const icon = <Link to='/admin/status'>
|
||||
<Icon name='microchip' size='large' label='Memory usage warning'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue