Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to know the way that a ticket is opened to apply correct background to the webpanel (dark mode)

Nikolai Zaytsev July 13, 2023

when I open a ticket from backlog page or from filter page, the surface background is 

`elevation.surface`, but when I open a ticket from Active Sprints view, it's opened in a dialog and the surface background is `elevation.surface.overlay`. Thus, I can't choose the same background color as at parent element. How can I know where webpanel is placed and what background of that element?

1 answer

0 votes
Nikolai Zaytsev July 13, 2023

As an option, I can parse the top URL and check:
- if searchArgs includes 'modal' or 'selectedIssue'
- if pathName includes 'board'

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events