# What's new UI Proposal & HTML, CSS code

**URL:** <https://forum.xwiki.org/t/whats-new-ui-proposal-html-css-code/12968>\
**Category:** Development\
**Tags:** proposal, design\
**Created:** [August 16, 2023, 3:57pm UTC](https://forum.xwiki.org/t/whats-new-ui-proposal-html-css-code/12968 "2023-08-16T15:57:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![CharpentierLucas](https://forum.xwiki.org/user_avatar/forum.xwiki.org/charpentierlucas/32/4830_2.png) [@CharpentierLucas](https://forum.xwiki.org/u/CharpentierLucas)\
**Post date:** [August 17, 2023, 9:36am UTC](https://forum.xwiki.org/t/whats-new-ui-proposal-html-css-code/12968/2 "2023-08-17T09:36:27Z")

</div>

> [@amilica](#):
>
> @CharpentierLucas will post a proposal on this

Here is the [proposal discussing a new implementation for the drawer](https://forum.xwiki.org/t/proposal-remove-the-drawer-dependency/12972).

* * *

> [@amilica](#):
>
> I’ve documented the 2 versions that I’ve worked on [in this proposal.](https://design.xwiki.org/xwiki/bin/view/Proposal/Design%20of%20What%27s%20new%20feature/)

Thanks for taking care of checking the contrast and meaning of the color variables 👍  
Looks good to me for the colors. You need to use colortheme variables though, see the comment on the CSS later in this post.

> [@amilica](#):
>
> Both versions look the same on small screen or in a drawer menu:

Wouldn’t there be an issue with the images on version 1 – small screen? As we can see on the screenshot, the pictures for version 1 are made to be viewed on a full sized screen and can be difficult to read on a small screen. If we use an alternative picture for the small screen, I have no problem with this.

I think the solution 2 would make having a clean responsive design easier, so I’d prefer it above solution 1.

* * *

About the HTML:

- Note that an alt with value “Image” is useless, it should be more precise than that. Here is a use case where it would impact usability: “I’m on the move, in the countryside, and I can’t load pictures in a reasonable amount of time on my phone. So my browser decides to replace it with its alt, and it just shows me ‘Image’. I didn’t get any of the information conveyed by the image and there might as well not have been any alternative text.” I understand that this is a demo code but it seems important to understand that this default alt can’t stay like this.
- See [our codestyles for CSS](https://dev.xwiki.org/xwiki/bin/view/Community/CodeStyle/XhtmlCssCodeStyle/#HCSS), you should avoid inline styling (using the attribute ‘style’ in HTML). You should create a CSS class and put all style in your CSS 🙂 This practice makes debugging and fixing easier, since if you have a style issue later, you don’t have to read through your HTML, but just look at the CSS since it’s where all the styles are handled.

About the CSS:

- Use colortheme variables (see [code practices for CSS](https://dev.xwiki.org/xwiki/bin/view/Community/CodeStyle/XhtmlCssCodeStyle/#HCSS) again): you could make it a LESS and use `@headings-color` and `@xwiki-page-content-bg`. This practices makes sure that there’s no issue when you change color theme (especially important for dark themes like ‘Darkly’).
- For the category tag style, maybe it’d be nice to use the same style as what we have currently for page tags:  
 ![image](https://forum.xwiki.org/uploads/default/original/2X/a/a4d5db1e55638ba787c194ec1b35471593d1f0d7.png)  
even if it means changing the current style for page tags.

Thank you for this proposal and have a good day!  
Lucas C.

---

_[View the full topic](https://forum.xwiki.org/t/whats-new-ui-proposal-html-css-code/12968)._
