Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Buttons affected for visual aid added #21

Merged
merged 2 commits into from
Nov 20, 2023

Conversation

AllierByron
Copy link
Collaborator

Added permanent colors when buttons are pressed, this way the user can know which mode its active.
Added the copy to clipboard button, now the user can easily copy all the text from the model or the result.

This last feature is still being developed as the testing threw some inconsistent behavior between browsers. As of now, Microsoft edge chromium v119 is the browser causing this strange behavior, when clicked the copy to clipboard button; the copy of the text will appear if pasted, but it will not appear on the clipboard giving the illusion as if nothing was copied.
Other tested browsers include chrome v119 and stack browser (chromium) beta v4.9.1, where the expected behavior of the button was observed.

<h1 className='basis-[2%] ml-2'>Model</h1>
<button
className={`mr-4 px-2 py-0 text-xs ${copyText === 'Copied!' ? ' text-yellow-300' : ''}`}
onClick={() => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extract the method from the JSX.

@geoperez geoperez merged commit 05bc8d0 into master Nov 20, 2023
1 check passed
@geoperez geoperez deleted the clipboard_and_mode_visibility branch November 20, 2023 17:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants