-
Notifications
You must be signed in to change notification settings - Fork 1
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
84 replace action button with mui button #85
Merged
NatLeung96
merged 26 commits into
80-update-widgets-to-use-mui-base
from
84-replace-action-button-with-mui-button
Apr 3, 2025
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
de29a3d
Replaced default html button with MUI Button
NatLeung96 9cd6af8
Added border and disabled settings
NatLeung96 82addef
Updated file for prettier
NatLeung96 d2468d9
Prettier again
NatLeung96 b855c74
Prettier still
NatLeung96 6f74e87
Final time
NatLeung96 a99f07f
Refactored code to be compatible with tests
NatLeung96 8a3a0ee
Updated test snapshot
NatLeung96 b9e8cd3
Fixed error in snapshot
NatLeung96 e1ef730
Corrected the default grey colour
NatLeung96 e663116
Corrected the default text colour
NatLeung96 c098291
Added settings to change cursor when button is disabled
NatLeung96 7418adf
Tidied the colour prop declarations
NatLeung96 429278e
Fixed text wrapping
NatLeung96 1a33e06
Addedd transparent to parser test
NatLeung96 ac618e2
Renamed colourscheme file and defaultColours name
NatLeung96 580f734
Moved decision making out of the Button declaration and reorganised s…
NatLeung96 8e80b07
Moved ThemeProvider to embeddedDisplay
NatLeung96 9705ea9
Updated the snapshot
NatLeung96 1c86e35
Changed it so that button variant is "text" when transparent, otherwi…
NatLeung96 1fdd5ac
Added rotationStep to bobParser
NatLeung96 dbddd4b
Moved static styling components to use styled API
NatLeung96 36e5186
Set lineHeight to 1
NatLeung96 805ebf9
Updated snapshot
NatLeung96 dc5a219
Fixed text rotation in Button
NatLeung96 3b30e4d
Updated snapshot
NatLeung96 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this
commonCss
function also removes the ability to set the buttonbackgroundColour
as transparent and some other CSS. It would be good to either keep using this function, or ensure we're still setting all the needed CSS.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made it so that the transparent field from the .bob file actually gets passed to the widget and added a test to make the background transparent if it is set to true. The way it currently works is that, when transparent, the button colour matches the background but it keeps the button shadow. Personally, I think this looks cool but I can remove it if desired.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding that missing prop in! I think it might look better if we change the button variant if the background colour is transparent from
contained
(which has the shadow) totext
. This ends up looking closest to Phoebus appearance