Skip to content

formBackground colour token applies to entire component container, not individual input fields #85

Description

@quinnmidnite

Summary

When setting formBackground via CheckoutComponents.ColorTokens, the colour is applied
to the entire component container rather than just the individual input fields. Additionally,
background appears to have no visible effect at all.

This contradicts the published documentation, which shows:

  • colorBackground → the outer component container/surface (see annotated diagram)
  • colorFormBackground → individual input field backgrounds only

In practice, formBackground is doing the job of background (colouring the entire
container), and background has no visible effect.

Reproduction

let colors = CheckoutComponents.ColorTokens(
    background: .red,          // Expected per docs: outer container. Actual: no effect
    formBackground: .lightBlue // Expected per docs: input fields only. Actual: entire container
)
let designTokens = CheckoutComponents.DesignTokens(colorTokensMain: colors)
Image

Documentaion snapshots
Image
Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions