Here is a first draft... 90% is coming from the claro theme... I have little merit

it comes with a proposal to add variables used at some other places

   /*  PROPOSAL TO ADD THOSES VARIABLES (and update other css rules accordingly)  */
  --font-weight-bold: 700;
  --color-focus: var(--color--blue-70);
  --color-disabled: var(--color--gray-30);
   /* END PROPOSAL */

and a small correction in fieldset (couldn't resist)

 .fieldset__description.is-disabled {
-  color: var(--input--disabled-fg-color); //variable doesn't exists
+  color: var(--color-disabled);
 }

details

Comments

DuneBL created an issue. See original summary.

kostyashupenko’s picture

Assigned: dunebl » kostyashupenko

I'm gonna review it

kostyashupenko’s picture

Assigned: kostyashupenko » Unassigned
StatusFileSize
new17.92 KB
new58.05 KB

Thanks @DuneBL for your init patch.
I did some cleanup and added styles to relate it with Olivero design.

kostyashupenko’s picture

Some screenshots.

Default state:
Details default

Default focus state:
Details default focus

Default hover state:
Details default hover

Default hover + focus states:
Details default focus and hover

Expanded state:
Details expanded

dunebl’s picture

This is really cleaner... very good job @kostyashupenko, it is perfect

We can handle the small bug of fieldset somewhere else?

.fieldset__description.is-disabled {
-  color: var(--input--disabled-fg-color); //variable doesn't exists
+  color: var(--color--gray-30);
 }

I see that you don't want to add the other variables included my proposal:

  --font-weight-bold: 700;
  --color-focus: var(--color--blue-70);
  --color-disabled: var(--color--gray-30);

Why adding those variables?:
Ex: If you are not familiar with the css, you don't know that --color--gray-30 is the color used for disabled fields...This is not adding a color, it is adding a way to discover how the theme is constructed... anyway I can live without.

kostyashupenko’s picture

If you are not familiar with the css

:)

@DuneBL true, but i really missed that part and forgot to say that better manage color-focus, color-disable, font-weight properties and other in a separate task. You can create a follow-up and you are right

I just didnt want to manage it in this task, so i did revert of your code, but totally forgot to write comment about it

dunebl’s picture

Status: Needs review » Reviewed & tested by the community
mherchel’s picture

oooh that looks pretty!

mherchel’s picture

Attaching updated patch. Messed up the interdiff, but the only change is that I'm extending the core/drupal.collapse library with the olivero/details library, into which I moved the CSS into.

mherchel’s picture

StatusFileSize
new18.13 KB
mherchel’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.