Sorted out using <details> element, got ancestor clicks closing out to their level

This commit is contained in:
Frank Johnson
2021-09-12 17:13:30 -04:00
parent 69c83d33b1
commit 2ec3a0b202
9 changed files with 313 additions and 165 deletions

View File

@@ -34,9 +34,16 @@ const EditorMenu = () => {
))}
</div>
<button
className="text-ch-gray-300 h-full cursor-not-allowed"
className="text-ch-gray-300 h-full"
aria-label="editor settings"
disabled
onClick={() =>
thunkDispatch((dispatch) =>
dispatch({
type: 'settingsButtonClicked',
payload: ['Settings', 'editor'],
})
)
}
>
<Svg name="gear" className="w-6 p-px" />
</button>