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

Dialog Scrollbar Size Issue #2887

Closed
gopusrikanth04 opened this issue Mar 1, 2021 · 9 comments · Fixed by #3067
Closed

Dialog Scrollbar Size Issue #2887

gopusrikanth04 opened this issue Mar 1, 2021 · 9 comments · Fixed by #3067
Assignees
Labels
bug This issue is a bug in the code Low Prio TOPIC RD

Comments

@gopusrikanth04
Copy link

gopusrikanth04 commented Mar 1, 2021

Bug Description

  1. change the scroll bar size to the Dialog

To reproduce
Steps to reproduce the behavior:

  1. Create a ui5-dialog
  2. Add style to the dialog height: 600px
  3. Apply Style to the diaog: "--sapScrollBar_Dimension": "7px"
    ::-webkit-scrollbar {
    width: 7px !important;
    height: 7px !important;
    }

Isolated example
https://codesandbox.io/s/wispy-leaf-ljisu?file=/src/App.js

Expected behavior
Dialog Scroll bar width is small
correct scroll

Screenshots
Scroll Isuee

Context

  • UI5 Web Components version 1.0.0-rc.10
  • OS/Platform: Win 10
  • Browser (if relevant): Chrome Version 88.0.4324.192 (Official Build) (x86_64)
  • Other information: None

Priority:(optional) (Low, Medium, High or Very High)
Very High

Business impact: (mandatory for "Very High")

@gopusrikanth04 gopusrikanth04 changed the title Dialog Scrollbar Size Isuue Dialog Scrollbar Size Issue Mar 1, 2021
@terezamch
Copy link
Contributor

Hello colleagues,

First of all, the scrollbar in the Dialog is not implemented fully by the spec - as I can see the width of it is wrong.

More over, I can see that non of the pseudo elements are working in the style attribute of the components, so the app developer cannot himself set the correct (by spec) width.

I also checked that when setting the following styles in the shadow root, the styles are applied
155817466_226654199155603_2269315668081575990_n

Please, check the spec and decide if and how to handle the pseudo elements on the components (maybe decision about the topic should be on a global level).

Thanks and best regards,
Tereza

@terezamch terezamch added approved This issue is approved bug This issue is a bug in the code TOPIC RD Low Prio and removed approved This issue is approved labels Mar 1, 2021
@gopusrikanth04
Copy link
Author

Hello Tereza Chobanova,

This is regarding to bug #2887

i didnt get you actually .
I have a requirement where i need to set styles to scrollbar as mentioned in the bug.
we are able to set the style to scrollbar in rest of the components except for dialogs and popovers.

as its being the shadow element we are able to set the style to dialog.

how can we achieve this.

@terezamch
Copy link
Contributor

Hello @gopusrikanth04 ,

Unfortunately, you cannot achieve it as now there is no possibility to add styles with pseudo elements in the dialog.
I have forwarded the issue to the responsible team.

Regards,
Tereza

@ilhan007
Copy link
Member

ilhan007 commented Mar 4, 2021

Hello @terezamch, just fyi, to forward the issue to the responsible team you have to change the Projects to "Maintenance - Topic RD",
from the settings, that stay to the right of the issue description, and by mentioning the responsible team in a comment by its github group name, so they know about this issue.

I already did it. BR, ilhan.

@ilhan007
Copy link
Member

ilhan007 commented Mar 4, 2021

Hello @SAP/ui5-webcomponents-topic-rd this incident has been forwarded to you.

@ilhan007
Copy link
Member

ilhan007 commented Apr 1, 2021

Hello @gopusrikanth04 in the next release (RC.14) or with "next" tag version that will come out in few days, you will be able to customize the scrollbar as follows

<ui5-dialog id="msg-dialog" header-text="Message dialog" style="--sapScrollBar_Dimension: 20px">

Check out the change #3067 to see what CSS Variables are exposed.

@gopusrikanth04
Copy link
Author

gopusrikanth04 commented Apr 1, 2021 via email

@ilhan007
Copy link
Member

ilhan007 commented Apr 1, 2021

@TeodorTaushanov could you answer the question by @gopusrikanth04

@TeodorTaushanov
Copy link
Member

Hi @gopusrikanth04,

--sapScrollBar_Dimension will be applied to the width or to the height depending on the scrollbar orientation.

::-webkit-scrollbar:horizontal {
height: var(--sapScrollBar_Dimension);
}

::-webkit-scrollbar:vertical {
width: var(--sapScrollBar_Dimension);
}

Best,
Teo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug in the code Low Prio TOPIC RD
Projects
Status: Completed
Development

Successfully merging a pull request may close this issue.

4 participants