From a356bfd6011d0f2f74af7c6aeab08cb8c98e2d68 Mon Sep 17 00:00:00 2001 From: orangemug Date: Sat, 6 Oct 2018 13:54:02 +0100 Subject: [PATCH] Switch from react-aria-menubutton to this.handleSelection(e.target.value)}> + {views.map((item) => { + return ( + + ); + })} + + diff --git a/src/styles/_toolbar.scss b/src/styles/_toolbar.scss index 70ae986..9cdc51e 100644 --- a/src/styles/_toolbar.scss +++ b/src/styles/_toolbar.scss @@ -92,6 +92,16 @@ @extend .maputnik-toolbar-link; } +.maputnik-toolbar-select { + background: inherit; + border-width: 0; + @extend .maputnik-toolbar-link; +} + +.maputnik-toolbar-select select { + margin-left: 4px; +} + .maputnik-icon-text { padding-left: $margin-1; } diff --git a/test/functional/modals/index.js b/test/functional/modals/index.js index d0996aa..2822434 100644 --- a/test/functional/modals/index.js +++ b/test/functional/modals/index.js @@ -100,7 +100,7 @@ describe("modals", function() { "geojson:example" ])); - browser.click(wd.$("nav:inspect")); + browser.setValue(wd.$("nav:inspect", "select"), "inspect"); }) }) diff --git a/test/functional/screenshots/index.js b/test/functional/screenshots/index.js index a6d6d2a..5152a95 100644 --- a/test/functional/screenshots/index.js +++ b/test/functional/screenshots/index.js @@ -83,7 +83,7 @@ describe('screenshots', function() { browser.waitForExist(".maputnik-toolbar-link"); browser.flushReactUpdates(); - browser.click(wd.$("nav:inspect")) + browser.setValue(wd.$("nav:inspect", "select"), "inspect"); browser.flushReactUpdates(); browser.takeScreenShot("/inspect.png")