1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-27 11:02:16 +01:00
unleash.unleash/frontend/src/component
Thomas Heartman fc0383620b
fix: focus styles for env headers (#9635)
Adds focus styles to the env accordion header only when the focus is on
the header itself (not on the env toggle inside the header). The focus
style is consistent with what we do for other accordions (dashboard,
milestones).

Middle one is focused:

![image](https://github.com/user-attachments/assets/df87bd99-8fe2-4093-afd8-4cbce9f2c943)


Focus is on the toggle inside the top one (yeh, we should have better
focus styles for toggles; but that's not for now):

![image](https://github.com/user-attachments/assets/2a046d4c-8585-4021-a58e-32ef81b1f701)

Open and focused: 

![image](https://github.com/user-attachments/assets/fdbb5bda-4be5-4354-b213-5e2c7a59eb59)

Getting the consistent background for the header when it's open is a
little tricky because the accordion container and summary are split into
different files. ~~This first iteration used a class name for the
specific header (because envs can have multiple accordion headers inside
them, e.g. release plans) and setting a CSS variable in the summary, so
that the background matches.~~ I found out that I only need to set it in
the parent anyway 😄

Without it, you get this (notice that there is a little white outside
the lower corners):

![image](https://github.com/user-attachments/assets/4d71d73c-7f45-46b5-811d-c6e36f9be5ce)
2025-03-28 15:59:25 +01:00
..
admin feat: admin menu (#9617) 2025-03-26 15:08:56 +01:00
application chore: fix text on last seen instances (#9376) 2025-02-27 09:21:40 +02:00
archive
banners chore: months old version banner (#9352) 2025-02-25 12:48:55 +00:00
changeRequest chore: Updates change request sidebar to remove env/cloud icon (#9577) 2025-03-19 11:13:11 +01:00
commandBar chore: fix missing primary routes for commandbar (#9557) 2025-03-18 10:13:23 +00:00
common fix: focus styles for env headers (#9635) 2025-03-28 15:59:25 +01:00
context
demo chore: instance status prices (#9588) 2025-03-21 09:15:49 +00:00
environments feat: show environments with change requests (#9628) 2025-03-27 12:16:04 +01:00
events chore: show events IP (#9512) 2025-03-12 10:06:29 +00:00
feature fix: focus styles for env headers (#9635) 2025-03-28 15:59:25 +01:00
featureTypes
feedback chore: remove uiGlobalFontSize flag (#9331) 2025-02-26 12:39:53 +01:00
feedbackNew
filter
insights Fix broken anchors in docs (#9406) 2025-03-11 11:45:40 +01:00
integrations
layout task: added a hook for cleanly deciding new or old admin menu (#9645) 2025-03-28 14:45:09 +01:00
loginHistory
maintenance
menu fix: useLocation instead of browser location for resolving pathname (#9640) 2025-03-28 08:54:21 +01:00
onboarding
personalDashboard chore: remove frontendHeaderRedesign flag (#9428) 2025-03-05 09:40:53 +01:00
playground/Playground refactor(1-3439): extract shared components and styling from Env Accordion Body to common (#9590) 2025-03-24 07:39:35 +00:00
project feat: enforce change request settings in create project dialog (#9637) 2025-03-27 16:15:09 +01:00
providers fix: use the correct permission for the create template button (#9545) 2025-03-14 14:42:28 +01:00
releases chore: swap release template instruction svgs for pngs (#9642) 2025-03-28 10:47:36 +02:00
segments
signals
splash
strategies
tags Feat/tag type colors frontend (#9566) 2025-03-19 10:03:33 +01:00
user fix: access overview fallback to email (#9582) 2025-03-20 11:02:19 +00:00
App.tsx chore: months old version banner (#9352) 2025-02-25 12:48:55 +00:00
InitialRedirect.tsx