I’ll +1 @daniel’s answer; since a version of AUI with the toggle button wasn’t included in Jira 7.0, the
web-resource dependency won’t be there, nor the component.
With respect to building your own toggle button: if you’re using Node-based tooling to build your front-end, one possible strategy would be to:
- Depend upon the
@atlassian/aui module as a dependency in your
- Import the
lib/css/aui-toggle.css files directly in to your code.
Needless to say, this situation isn’t ideal. The AUI team are aware that this cross-version compatibility problem exists, and would like to help improve the situation a little. We’re discussing ideas internally, but if you have suggestions for ways we could make your life a bit easier, we’re listening