Skip to content

Commit 9987f2b

Browse files
committed
Add the ability to specify a second custom logo for PatternFly 6
1 parent 2890ccc commit 9987f2b

File tree

1 file changed

+143
-0
lines changed

1 file changed

+143
-0
lines changed

enhancements/console/custom-logos.md

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
---
2+
title: custom-logos
3+
authors:
4+
- "@cajieh"
5+
reviewers:
6+
- "@jhadvig "
7+
- "@spadgett"
8+
- "@everettraven"
9+
- "@JoelSpeed"
10+
approvers:
11+
- "@spadgett"
12+
api-approvers:
13+
- "@JoelSpeed"
14+
creation-date: 2025-02-11
15+
last-updated: 2025-02-11
16+
---
17+
18+
# Custom Logos
19+
20+
## Summary
21+
22+
The OpenShift Container Platform (OCP) web console is currently being upgraded to PatternFly 6. In PatternFly 6, the masthead color changes based on the mode (light or dark). Consequently, a single custom logo may not be suitable for both modes.
23+
24+
Add the ability to specify custom logo features to support light and dark theme modes for the masthead and favicon.
25+
26+
## Background info
27+
28+
The OpenShift Container Platform (OCP) web console is currently being upgraded to PatternFly 6. In PatternFly 6, the masthead color changes based on the mode (light or dark). Consequently, a single custom logo may not be suitable for both modes.
29+
30+
To address this, we need to allow users to add custom logos for both the masthead and favicon that are compatible with light and dark themes. This ensures that the logos are always visible and aesthetically pleasing, regardless of the theme mode.
31+
32+
The custom logos feature will enable users to specify different logos for the masthead and favicon based on the theme mode. This will involve extending the API to support custom logos for both light and dark themes.
33+
34+
## Motivation
35+
36+
The OpenShift Container Platform (OCP) web console is currently being upgraded to PatternFly 6. In PatternFly 6, the masthead color changes based on the mode (light or dark). Consequently, a single custom logo may not be suitable for both modes. This is evident with the existing OKD and OpenShift logos, which assume a dark masthead background and include white text.
37+
38+
### User Stories
39+
40+
* As an OpenShift web console user, I want to be able to add custom logos for light and dark theme modes in the masthead and favicon.
41+
42+
### Goals
43+
44+
This feature should allow users to add custom logos for the masthead and favicon that are compatible with both light and dark theme modes in the OpenShift web console.
45+
46+
### Non-Goals
47+
48+
49+
## Proposal
50+
51+
### Workflow Description
52+
53+
├── spec
54+
│ ├── customization
55+
│ ├── customLogos
56+
│ ├── type
57+
│ ├── themes
58+
│ ├── type
59+
│ ├── file
60+
│ ├── key
61+
│ ├── name
62+
└── ...
63+
64+
### Risks and Mitigations
65+
66+
Handling different custom logos for light and dark themes may increase the complexity of the backend and UI logic. Additionally, users might experience confusion with the introduction of new logo configuration options, especially if they are familiar with the old method, which may soon be deprecated.
67+
68+
To mitigate these challenges, it's essential to provide comprehensive documentation and intuitive tools that guide users through the transition. Clear communication about the changes and their benefits will help ease the adjustment period and ensure a smoother experience for all users. Thoroughly test and validate the new logic, and implement fallback mechanisms to ensure logos are always visible if any are missing.
69+
70+
71+
### Drawbacks
72+
73+
N/A
74+
75+
## API Design Details
76+
77+
The configuration for custom logos will include support for both masthead and favicon types, with separate files for light and dark themes:
78+
79+
```yaml
80+
customLogos:
81+
- type: Masthead
82+
themes:
83+
- type: Light
84+
file:
85+
key: logo-light.png
86+
name: masthead-logo-light
87+
- type: Dark
88+
file:
89+
key: logo-dark.png
90+
name: masthead-logo-dark
91+
- type: Favicon
92+
themes:
93+
- type: Light
94+
file:
95+
key: favicon-light.ico
96+
name: favicon-logo-light
97+
- type: Dark
98+
file:
99+
key: favicon-dark.ico
100+
name: favicon-logo-dark
101+
```
102+
103+
### Attributes Description
104+
105+
#### customLogos
106+
- `type`: Enumerate which specifies the type of custom logo. Available custom logo types are `Masthead` and `Favicon`.
107+
- `themes`: A list of themes for which the custom logo is defined.
108+
109+
#### themes
110+
- `type`: Enumerate which specifies the type of theme. Available theme types are `Light` and `Dark`.
111+
- `file`: Contains the file details for the custom logo.
112+
113+
#### file
114+
- `key`: The key or path to the logo file.
115+
- `name`: The name identifier for the custom logo.
116+
117+
### Test Plan
118+
119+
### Graduation Criteria
120+
121+
N/A
122+
123+
124+
#### Dev Preview -> Tech Preview
125+
126+
N/A
127+
128+
#### Tech Preview -> GA
129+
130+
N/A
131+
132+
#### Removing a deprecated feature
133+
134+
The current custom logo feature is deprecated and will be removed at some point in the future. Users are encouraged to transition to the new custom logo configuration that supports light and dark theme modes for the masthead and favicon.
135+
136+
N/A
137+
138+
#### Failure Modes
139+
140+
N/A
141+
142+
## Alternatives
143+

0 commit comments

Comments
 (0)