Skip to content

Implement governance form field styling (Fixes #2656, #2657, #2659) - #6407

Open
aonif wants to merge 4 commits into
canton-network:mainfrom
Finoa-Consensus-Services:sv-ui/2656
Open

Implement governance form field styling (Fixes #2656, #2657, #2659)#6407
aonif wants to merge 4 commits into
canton-network:mainfrom
Finoa-Consensus-Services:sv-ui/2656

Conversation

@aonif

@aonif aonif commented Jul 14, 2026

Copy link
Copy Markdown

Summary

Align TextField, DateField, SelectField, and config inputs with Figma: grey (#363636) surfaces, uppercase section labels, and DateField picker pattern (KeyboardArrowDown, read-only display).

Pull Request Checklist

Cluster Testing

  • If a cluster test is required, comment /cluster_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If an upgrade test is required, comment /upgrade_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If a hard-migration test is required (from the latest release), comment /hdm_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.
  • If a logical synchronizer upgrade test is required (from canton-3.5), comment /lsu_test on this PR to request it, and ping someone with access to the DA-internal system to approve it.

PR Guidelines

  • Include any change that might be observable by our partners or affect their deployment in the release notes.
  • Specify fixed issues with Fixes #n, and mention issues worked on using #n
  • Include a screenshot for frontend-related PRs - see README or use your favorite screenshot tool

Merge Guidelines

  • Make the git commit message look sensible when squash-merging on GitHub (most likely: just copy your PR description).

@aonif

aonif commented Jul 14, 2026

Copy link
Copy Markdown
Author

@pawelperek-da
Screenshot 2026-07-14 at 15 25 51
Screenshot 2026-07-14 at 15 25 59
Screenshot 2026-07-14 at 15 26 13

sx: datePickerFieldSx,
inputProps: {
'data-testid': `${id}-field`,
readOnly: true,

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.

This will probably produce similar issue to #6397 (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.

removed

},
inputProps: {
'data-testid': `${id}-field`,
readOnly: true,

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.

...and this too

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.

+1

@pawelperek-da

Copy link
Copy Markdown
Contributor

Seem CI is failing with

2026-07-17T13:10:40.9114576Z [info]   Cause: org.openqa.selenium.ElementClickInterceptedException: Element <button id="submit-button" class="MuiButtonBase-root MuiButton-root MuiButton-pill MuiButton-pillPrimary MuiButton-sizeLarge MuiButton-pillSizeLarge MuiButton-colorPrimary Mui-disabled MuiButton-root MuiButton-pill MuiButton-pillPrimary MuiButton-sizeLarge MuiButton-pillSizeLarge MuiButton-colorPrimary css-16dhouc-MuiButtonBase-root-MuiButton-root" type="submit"> is not clickable at point (754,660) because another element <div class="MuiBox-root css-94cqfy"> obscures it
2026-07-17T13:10:40.9118212Z [info] Build info: version: '4.44.0', revision: 'da2039b'
2026-07-17T13:10:40.9119099Z [info] System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.12.85+', java.version: '21.0.10'
2026-07-17T13:10:40.9119993Z [info] Driver info: org.openqa.selenium.firefox.FirefoxDriver
2026-07-17T13:10:40.9121093Z [info] Command: [a73eec97-2c62-4bf3-8e7a-99baa7db3dcf, clickElement ***id=a7beb38a-00a5-4ae0-b3f7-75de6ef68edb***]
2026-07-17T13:10:40.9124978Z [info] Capabilities ***acceptInsecureCerts: true, browserName: firefox, browserVersion: 148.0.2, moz:accessibilityChecks: false, moz:buildID: 20260309125808, moz:geckodriverVersion: 0.36.0, moz:headless: true, moz:platformVersion: 6.12.85+, moz:processID: 14746, moz:profile: /tmp/nix-shell.x0DK7F/rust_..., moz:shutdownTimeout: 60000, moz:webdriverClick: true, moz:windowless: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: ***implicit: 0, pageLoad: 300000, script: 30000***, unhandledPromptBehavior: dismiss and notify, userAgent: Mozilla/5.0 (X11; Linux x86..., webSocketUrl: ws://127.0.0.1:39989/sessio...***
2026-07-17T13:10:40.9128907Z [info] Element: [[FirefoxDriver: firefox on linux (a73eec97-2c62-4bf3-8e7a-99baa7db3dcf)] -> id: submit-button]

could you look into it?

@timpel-fcs

Copy link
Copy Markdown
Contributor

I think the issue is with a focus change on click of the date field, basically focus shifts from the input filed to the date picker therefore not immediately allowing input. The clean options would be to remove the on click picker/limiting to the chevron or implementing a workaround for that focus change so we don't need to rely on workarounds in the test itself. Will have a look - same should then be true for the RadioSelector PR since it is using the same logic

@timpel-fcs

Copy link
Copy Markdown
Contributor

@pawelperek-da removed custom on-click logic as it was interfering with the integration tests due to MUI focus management, picker is now limited to the chevron icon (MUI default), the rest of the field allows input

@pawelperek-da pawelperek-da 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.

Thanks!

aonif and others added 4 commits July 28, 2026 11:40
…ixes canton-network#2657, Fixes canton-network#2659)

Align TextField, DateField, SelectField, and config inputs with Figma:
grey (#363636) surfaces, uppercase section labels, and DateField picker
pattern (KeyboardArrowDown, read-only display, YY-MM-DD HH:mm).
- canton-network#2656: ProposalSummaryField / textarea styling
- canton-network#2657: TextField single-line styling
- canton-network#2659: ConfigField table entry styling

Signed-off-by: Lyutskan Lyutskanov <lyutskan.lyutskanov@finoa.io>
…en (same as EffectiveDateField)

Signed-off-by: Tim Pelzer <tim.pelzer@finoa.io>
… integration tests

Signed-off-by: Tim Pelzer <tim.pelzer@finoa.io>
Signed-off-by: Tim Pelzer <tim.pelzer@finoa.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

7 participants