Skip to content

Pass a className to <Toggles>

Administrator requested to merge lg/fix-toggles into master

Created by: lguychard

<Toggles/> had the query-input2__toggle-container class by default, styled with position: absolute. This was problematic as it's also used in the Monaco query input, where it should not be absolutely positioned.

This changes <Toggles> to take a className as props, so that it can be styled differently depending on the query input where it's embedded. Child components of <Toggles> now have .toggle-container__ classes applied, rather than .query-input2__.

Merge request reports

Loading