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

oh-colorpicker component doesn‘t accept style configuration #1713

Closed
florian-h05 opened this issue Feb 16, 2023 · 0 comments · Fixed by #1989
Closed

oh-colorpicker component doesn‘t accept style configuration #1713

florian-h05 opened this issue Feb 16, 2023 · 0 comments · Fixed by #1989
Assignees
Labels
bug Something isn't working main ui Main UI

Comments

@florian-h05
Copy link
Contributor

The problem

All oh- components accept CSS style configuration in the widget editor, but oh-colorpicker does apply the style configuration.

Expected behavior

oh-colorpicker should apply style configuration.

Steps to reproduce

Create a new widget and add this code to the slots.default section:

    - component: oh-colorpicker
      config: 
        item: Florian_RGB
        style:
          position: absolute
          right: 5px
          top: 65px
          height: 60px
          width: 60px

Your environment

openHAB 3.4.1

Browser console

Nothing related to this issue.

Browser network traffic

Additional information

Wrapping oh-colorpicker inside a div works:

    - component: div
      config: 
        style:
          margin: 0 0 0 0
          position: absolute
          right: 5px
          top: 65px
          height: 60px
          width: 60px
      slots:
        default:
          - component: oh-colorpicker
            config:
              item: Florian_RGB
              modules:
              - current-color
@florian-h05 florian-h05 added bug Something isn't working main ui Main UI labels Feb 16, 2023
@florian-h05 florian-h05 self-assigned this Feb 16, 2023
florian-h05 added a commit to florian-h05/openhab-webui that referenced this issue Jul 27, 2023
@ghys ghys closed this as completed in #1989 Sep 5, 2023
ghys pushed a commit that referenced this issue Sep 5, 2023
…pted & cosmetic error on missing defaultColor (#1989)

Fixes #1713.

- Fix command not sent when current Item state is null.
- Fix style can not be set.
- Fix a (cosmetic) error thrown when defaultColor has no value.

---------

Signed-off-by: Florian Hotze <[email protected]>
stefan-hoehn pushed a commit to stefan-hoehn/openhab-webui that referenced this issue Sep 23, 2023
…pted & cosmetic error on missing defaultColor (openhab#1989)

Fixes openhab#1713.

- Fix command not sent when current Item state is null.
- Fix style can not be set.
- Fix a (cosmetic) error thrown when defaultColor has no value.

---------

Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Stefan Höhn <[email protected]>
digitaldan pushed a commit to digitaldan/openhab-webui that referenced this issue Sep 24, 2023
…pted & cosmetic error on missing defaultColor (openhab#1989)

Fixes openhab#1713.

- Fix command not sent when current Item state is null.
- Fix style can not be set.
- Fix a (cosmetic) error thrown when defaultColor has no value.

---------

Signed-off-by: Florian Hotze <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working main ui Main UI
Projects
None yet
1 participant