Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make properties button smaller #840

Merged
merged 4 commits into from
May 5, 2023
Merged

Conversation

kylelaker
Copy link
Contributor

@kylelaker kylelaker commented May 4, 2023

This changes the "Open Properties" button to be only an icon. This then,
in turn, makes it so we can put it in the Control Title areas and in the
action areas for Back Matter resources. This should give us more
flexibility about where and how to display this without "Open
Properties" as text all over the page.

A workaround is added to make it so that even a disabled properties
button appears with a tooltip; this should make it easier to understand
the purpose of the button. As explained in the inline comment, we can
probably remove that when we add full editing support.

Finally, the tests are reworked to centralize testing in a single file and
to actually test the contents and different properties there. Tests are left
in OSCALMetadata.test.tsx to have a test for a consumer of the API.

image

This changes the "Open Properties" button to be only an icon. This then,
in turn, makes it so we can put it in the Control Title areas and in the
action areas for Back Matter resources. This should give us more
flexibility about where and how to display this without "Open
Properties" as text all over the page.

A workaround is added to make it so that even a `disabled` properties
button appears with a tooltip; this should make it easier to understand
the purpose of the button. As explained in the inline comment, we can
probably remove that when we add full editing support.
Sometimes we do in fact have buttons.
@kylelaker kylelaker linked an issue May 5, 2023 that may be closed by this pull request
2 tasks
@Bronstrom Bronstrom merged commit 289398b into develop May 5, 2023
5 checks passed
@Bronstrom Bronstrom deleted the kyle/properties-slight-move branch May 5, 2023 13:43
tuckerzp pushed a commit that referenced this pull request May 25, 2023
This changes the "Open Properties" button to be only an icon. This then,
in turn, makes it so we can put it in the Control Title areas and in the
action areas for Back Matter resources. This should give us more
flexibility about where and how to display this without "Open
Properties" as text all over the page.

A workaround is added to make it so that even a `disabled` properties
button appears with a tooltip; this should make it easier to understand
the purpose of the button. As explained in the inline comment, we can
probably remove that when we add full editing support.

Finally, the tests are reworked to centralize testing in a single file
and
to actually test the contents and different properties there. Tests are
left
in `OSCALMetadata.test.tsx` to have a test for a consumer of the API.


![image](https://user-images.githubusercontent.com/850893/236334681-bf7883ef-f6a1-4771-ac84-e948daf58199.png)
@kylelaker kylelaker added the bug Something isn't working label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display properties for metadata, back matter, and controls
3 participants