Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theming - refactor current approach #740

Closed
2 of 4 tasks
Tracked by #1016 ...
thrbnhrtmnn opened this issue Jan 8, 2024 · 3 comments · Fixed by #991
Closed
2 of 4 tasks
Tracked by #1016 ...

Theming - refactor current approach #740

thrbnhrtmnn opened this issue Jan 8, 2024 · 3 comments · Fixed by #991
Assignees
Labels
⭕ core team issue This is for the core team and should not be done by contributors ⌨️ dev issue Task is for developers 📋 task::ready Task is ready to be picked up or planned in
Milestone

Comments

@thrbnhrtmnn
Copy link
Contributor

thrbnhrtmnn commented Jan 8, 2024

Description / User Story

There are multiple topics, we can improve in our current theming approach:

  • reducing build size / optimising code base by removing the <style> tag in each component
  • allow more than 2 themes (ideally we have a class for the theme, and depending on the theme the components then get the right values

Requirements


Acceptance Criteria

  • <style> tag has been removed from components
  • We now can have more than 2 themes in code
  • New themes added by design are automatically added in code

Background information

  • Currently for each theme a huge string will be created, which will also change dynamically the info in the style tags.
  • A better solution would be to have one huge style string, but classes for light and dark.
  • After this we can also check out CSS minifier to reduce the build size.
  • Automating the adding of new theme can be done with the token studio meta data
@thrbnhrtmnn thrbnhrtmnn added ⌨️ dev issue Task is for developers ⭕ core team issue This is for the core team and should not be done by contributors labels Jan 8, 2024
@thrbnhrtmnn thrbnhrtmnn added this to the Release 1.0 milestone Jan 8, 2024
@thrbnhrtmnn thrbnhrtmnn modified the milestones: Release 1.0, Beta Release Jan 9, 2024
@thrbnhrtmnn thrbnhrtmnn added the 📋 task::ready Task is ready to be picked up or planned in label Jan 18, 2024
@thrbnhrtmnn thrbnhrtmnn modified the milestones: Beta Release, Release 1.0 Mar 7, 2024
@ChristianHoffmannS2 ChristianHoffmannS2 linked a pull request Mar 8, 2024 that will close this issue
1 task
@thrbnhrtmnn thrbnhrtmnn modified the milestones: v1.0, v0.4.0 Mar 26, 2024
@thrbnhrtmnn
Copy link
Contributor Author

thrbnhrtmnn commented Apr 15, 2024

WIP Review:

Hey , here are my findings from looking at Storybook:

  • Button Icon: focus ring is not displayed anymore in dark and light mode
  • Button Text: focus ring has wrong color in dark mode (also on develop)
  • Checkbox: focus ring has wrong color in dark mode (also on develop)
  • Input Field Number:
    • it seems like the unit does not inherit any styles
    • input field background color is missing in rest and hover state for light and dark mode (also on develop > will be fixed with Input Field Number - fix input background, value and unit color #933 )
    • input field background, border color is wrong in readonly and disabled state for light and dark mode
    • input field stepper icon color is wrong in readonly and disabled state for light and dark mode (also on develop > will be fixed with Input Field Number - fix input background, value and unit color #933 )
    • input field background color is wrong in error state in rest, hover, pressed and focus state in light mode
    • input field background color is wrong in error state in pressed and focus state in dark mode
    • input field border color is wrong in error state in rest, pressed/focus state in light mode
    • input field border color is wrong in error state in rest, hover, pressed/focus state in dark mode
    • input field focus ring color is wrong in dark mode (also on develop)
  • Input Field Text (TBD):
  • Radio:
  • Select:
    • focus ring has wrong color in dark mode (also on develop)
    • icon color in rest state dark mode is wrong (also on develop)
  • Text Area:
    • focus ring is not overlaying the border in light and dark mode
    • focus ring has wrong color in dark mode (also on develop)
  • Toggle Switch (TBD):
  • Tooltip (TBD):
  • Tooltip Bubble (TBD):

@thrbnhrtmnn
Copy link
Contributor Author

Follow up Review:

  • Input Field Text:
    • input field background color is wrong in readonly state (also on develop > will be fixed with Input Field Text - icon, placeholder & background color fixes #936 together with other issues)
    • focus ring color in dark mode is wrong (also on develop > I can create a new issue for this)
    • border in pressed state acts weird in dark and Light mode (also on develop > I can create a new issue for this)
  • Toggle Switch:
  • Tooltip: all looks good

Summary: no findings, only topics that were already wrong on develop

@thrbnhrtmnn
Copy link
Contributor Author

Hey @faselbaum , I also checked the fixes of the first review and everything looks good :-) I will approve the PR now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭕ core team issue This is for the core team and should not be done by contributors ⌨️ dev issue Task is for developers 📋 task::ready Task is ready to be picked up or planned in
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants