Needs work
Project:
Claro
Version:
3.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Aug 2019 at 18:43 UTC
Updated:
21 Sep 2026 at 13:40 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
ckrinaPostponing this until the design is done.
Comment #3
ckrinaPostponing this until the design is done.
Comment #4
huzookaComment #5
ckrinaComment #7
ckrinaAdding the new designs.
Comment #8
ckrinaAna am I missing any definition on the designs?
Comment #9
ana barcelona commentedI think it looks good! Excited to continue working with you!
Comment #10
pradeepjha commentedComment #11
pradeepjha commentedI'll be working on it later till now I'm unassigning this ticket.
Comment #12
kostyashupenkoComment #13
kostyashupenkoInit patch

I didn't manage
yarn lint:cssand css-variables properly yet, so feel free to continue with it.Comment #14
ckrinaComment #15
pradeepjha commentedI'll be working on css lint and if there is something missing in design.
Comment #16
pradeepjha commentedI've done linting of css file. Now there is no lint issue. Rest everything looks good.
Comment #17
pankaj.singh commentedComment #18
KondratievaS commentedTested patch from #16 and result is following:
1. Mobile design is not provided, but i think current result is not really good - block are too small and have different size, maybe better to have these blocks each under other
2. Also, "Image style name" field has too big length and machine name should be placed under this field
3. Effect should be bold
4. Select list and Add button should be bigger with bigger margin between them
Comment #19
KondratievaS commentedComment #20
pankaj.singh commentedComment #21
pradeepjha commented+Need design for Mobile view.
Comment #22
sharma.amitt16 commented@pradeepjha as you have submitted the last patch, requesting you to work on this.
As suggested by @KondratievaS, I feel it will be good if you will put the block under the other on mobile design. I feel it will make more sense on the mobile view.
Any thoughts?
Comment #23
pradeepjha commentedComment #24
pradeepjha commentedComment #25
ckrinaHere's the design for the mobile. Basically, one below the other as it is right now:
Also, here are the edge case on where the image is too small and how it should behave (specs here):
Comment #26
komalk commentedComment #27
komalk commentedComment #28
KondratievaS commentedComment #29
KondratievaS commentedTested patch from #29 and as i see for mobile resolutions content is cut - need to use horizontal scroll to see whole content
Aslo, bugs #2,3,4 from comment #18 are not fixed
Comment #30
KondratievaS commentedComment #31
KondratievaS commentedComment #32
shalinigaur commentedComment #33
shalinigaur commentedHi, I have used patch #27 and created new patch #33. Interdiff file interdiff-3072773-27-33.txt file is created as well. Fixed issue for content cut in mobile resolution (refer screenshot after-patch-mobile-screen.png).
Also tried fixing bugs #2,3,4 from comment #18 (refer screenshot after-patch-screen-resolved-comment#18.png).
Comment #34
shalinigaur commentedComment #35
pradeepjha commentedHi @shalinigaur
As I can see you have made some changes in Claro css component here:
Please make below changes in your last applied patch:
.button--extrasmallbetter use existing some library class. We have one library class called.button--small, if you use this class then you don't have to add any css. Or add another class to write css if design is not achievable.Comment #36
shalinigaur commentedComment #37
shalinigaur commentedComment #38
shalinigaur commented@pradeepjha Please see the updated patch 3072773-38.patch. Checked and made changes as mentioned. I have added a new class and removed the override css.
Comment #39
priyanka.sahni commentedWorking on it
Comment #40
priyanka.sahni commentedVerified and tested by applying the patch #38.It looks good to me.Can be moved to RTBC.
Steps to test -
1. Go to the admin site.
2. Go to admin/appearance.
3. Select Claro theme.
4. Go to /admin/config/media/image-styles/manage/large.
After Patch Mobile -

After Patch Desktop -

Comment #41
priyanka.sahni commentedComment #42
bnjmnmPartial review:
The added styles target a specific form, and should be moved to a CSS file dedicated to that form. These styles are not comprehensive enough to be reusable elsewhere, it is largely related to positioning that is unique to the image style form.
The padding and font-size styles can be removed. The font size doesn't change anything, and this padding rule provides the incorrect values. If this padding style is removed, the correct values will be inherited by other existing CSS.
Since this means the only changes are margins, this isn't really applying a medium style anymore - the margins can be acheived using a different selector strategy.
The styles added here are already accomplished with
.button--extrasmall. Instead of defining a new variant-like class, it's probably better to add a class like.button--add-image-style, and bring in the relvant styles for.button--extrasmallas CSS variablesThis impacts every instance of tabledrag, such as admin/structure/types/manage/article/form-display
This should instead target the image style form, as other uses of tabledrag do not use bold here.
This is a theme override, not a default implementation.
Comment #43
ckrinaComment #44
shalinigaur commentedComment #45
shalinigaur commented@bnjmnm Please find the updated patch, done changes as following:
Point 1. Removed the style and added it in the specific image form css.
Point 2. Font-size and padding is removed but margin is given as it was requirement mentioned to give margin between them in bugs #4 from comment #18.
Point 3. Tried doing it but the style is not working unless we make it specific for image form. Although I have renamed the class name as .button--add-image-style
Point 4. Set the css for specific image form.
Point 5. Corrected the comment
Comment #46
shalinigaur commentedComment #47
komalk commented@shalinigaur,
Please try to fix the linting errors. Please have a look at the screenshot.
Comment #48
shalinigaur commented@komalkolekar Fixed linting errors. Please find the updated patch.
Comment #49
KondratievaS commentedTested patch from #45 and there are 3 issues
1. Margin is to big
2. Button and selectlist are displaced for mobile
3. For resolutions more than 470px display is not good
Comment #50
KondratievaS commentedComment #51
shalinigaur commentedComment #52
shalinigaur commented@KondratievaS Please find the updated patch with following changes:
1. Fixed margin (refer screenshot below)
2. Fixed Button and selectlist are displaced for mobile (refer screenshot below)
3. For resolutions more than 470px display is fixed (refer screenshot below)
If the issue still exists for any particular browser or screen-size then please let me know.
Comment #53
shalinigaur commentedComment #54
KondratievaS commentedTested patch from #52 and there are 2 bugs:
- blocks should have same size
- value in select list is cut
Comment #55
KondratievaS commentedComment #56
kostyashupenkoComment #57
shalinigaur commented@KondratievaS I have re-tested on the same resolution as you tested but everything seems fine to me. I have tested on Chrome and Mozilla browsers please find the screenshots below.
Please mention the specific browser in which you are testing.
Comment #58
kostyashupenkoI have removed some weird code from last patch, like:
or
or
and some other.
Now what was really done:

1. Added some margins / better management of cards sizes for all breakpoints.
2. It was really weird to me why we have
--smallmodifier for buttons, but no same modifier for form-elements :) So i have added it. BUT! I'm sure we can just set selectbox + button as--extrasmall=> that one will be fully enough. But for now - i have added--smallmodifier for form-elements. It needs discussion and careful review. Check how it looks with:---
--smallmodifier---

--smallmodifierSo honestly no big difference for me - we can keep extrasmall for both ?
3. I don't really think we have to manage width of that textfield, at least why? I don't see any reason (from that comment)

4. I have some doubts about mobile styling, check the following screens:

--- with hidden
weightscolumn--- with visible

weightscolumnSince markup is table - any solutions how we can deal with it?
Comment #59
bnjmnmThere's an existing issue for that: #3083256: Create smaller variations for form elements. I'm setting this to Postponed on that issue, as some of the changes here could conflict with that. I like what I'm seeing in #58, though, so if we can get the smaller variants issue through, this could be pretty close.
Comment #67
quietone commentedThe Claro theme was approved for removal in #3576460: [policy, no patch] Deprecate and remove Claro.
The deprecation work is in #3576668: [meta] Tasks to deprecate Claro and the removal work in #3584638: [meta] Tasks to remove the Claro theme.
Comment #68
smustgrave commented