Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Avani.addweb created an issue. See original summary.

Avani.addweb’s picture

FileSize
1.46 KB

@yas, Please test the attached patch for select2 dropdown design.

yas’s picture

Status: Active » Needs work
FileSize
222.93 KB
176.04 KB
328.86 KB

@avaniaddweb

Thank you for fixing the color. Please see my comment in the screenshot shown in below:

  1. Blue theme: Cloud Server Template - Select2 Javascript dropdown box for Image ID
    bule-20200324a.png
  2. Dark theme: Cloud Server Template - Select2 Javascript dropdown box for Image ID (This is a good example, hoping you to fix the dropdown box height, though)
    dark-20200324a.png
  3. Dark theme: Cloud Server Template - Select2 Javascript dropdown box for Instance Type
    dark-20200324b.png

Note that I just picked up the examples, so I hope you to apply the changes to the same places in the other themes.

Avani.addweb’s picture

@yas, for point 3 Dark theme: I have applied same background color for Select dropdwon Instance Type. But this is a simple select-option dropdown. it's not javascript selectbox. so may be it's shows different background-color. can you please check it in different browsers and let me know your views.

yas’s picture

@avaniaddweb

Please refer to the following screenshots. I had the same results amongst all browsers.

  1. macOS (Catalina) Chrome

    09.png

  2. macOS (Catalina) Firefox

    38.png

  3. macOS (Catalina) Safari

    15.png

  4. Windows 10 Chrome

    05.png

Note that AMI Image ID is displayed correctly.

Avani.addweb’s picture

FileSize
2.34 KB

@yas, I made changes according to your comments. Please check the attached patch.

yas’s picture

@avaniaddweb

Thank you for the update, but the patch didn't make change anything. The dropdown list (actually that is "table") background color is still white.

I think we should change or override the background-color of table.select2-results in aws_cloud_instance_type.css to bring this change to somewhere around in your dark mode theme, or specify the background-color of .select2-dropdown?

I just tried to edit the background-color in on-demand viewer, then it looks changed.

16.png

yas’s picture

yas’s picture

@avaniaddweb

Note that I assume that AMI Image ID dropdown list is something like a normal select box, however Instance Type dropdown list is NOT a normal one. You can see five columns in the dropdown list in Instance Type. Therefore, I believe that they are different; so we need to set up the color one by one.

Avani.addweb’s picture

Status: Needs work » Needs review
FileSize
2.55 KB
1.76 KB

@yas, Yes you are right it's not simple dropdown. first of all, I am not able to find this type of column dropdown. Well, finally I found this type of dropdown and accordion to that I made changes. Please find attached patch for this.

yas’s picture

Status: Needs review » Needs work
FileSize
167.24 KB
226.83 KB

@avaniaddweb

Thank you for the update. I tried to apply the patch but received the following error after merging 3122018-10.patch:

$ git apply -v /tmp/3122018-10.patch
Checking patch css/dark-theme.css...
Checking patch css/form.css...
error: while searching for:
.messages__wrapper .alert-warning p {
  margin-bottom: 0;
}

error: patch failed: css/form.css:46
error: css/form.css: patch does not apply
Checking patch css/oceanic-theme.css...
Checking patch css/storm-theme.css...

So could you please re-create the patch again?

Also, could you please make a font of the Select2 dropdown list one step smaller?

e.g.

  • Extra LargeLarge
  • LargeMedium
  • MediumSmall
  • SmallExtra Small
  • Extra SmallExtra Small

Please compare the Select2 dropdown list font size and normal select box.

31.png

51.png

Avani.addweb’s picture

FileSize
6.58 KB

@yas, Thanks for the review. I made the necessary changes according to that. Please check this one.

yas’s picture

Status: Needs work » Reviewed & tested by the community

@avaniaddweb

Thank you for the update. It looks beautiful now. I'll merge the patch to 8.x-1.x and close this issue as Fixed.

  • yas committed 78ac42a on 8.x-1.x authored by Avani.addweb
    Issue #3122018 by Avani.addweb, yas: Fix the color scheme in Select2...
yas’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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