-
Notifications
You must be signed in to change notification settings - Fork 356
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
Use the carbon component mapper for our DDF forms #7464
Conversation
Right now the form looks like this: If I switch the theme to g10 in the I guess we have dark mode enabled?! @kavyanekkalapu @himdel |
Yes we should use g10 light mode and we can fix leftnav colors manually. |
@kavyanekkalapu I started playing with the menu and its styling and I think we might be using the wrong one. There's a |
e7de032
to
2dc5a1d
Compare
Ah, a different theme can be enabled for different parts of the app, by only Failing that, we can trivially switch to a white theme, the menu can be de-themified by running |
2dc5a1d
to
29dc29f
Compare
Since #7479 is in, we are now with the correct theme: Isn't it beautiful? 😻 |
Blocked by data-driven-forms/react-forms#884 |
3d5ec62
to
98d3989
Compare
6be2af6
to
a107273
Compare
CodeEditorJust changed the radio buttons and the group around them DualGroupSwitched to the implementation provided by the component mapper, that has a few caveats. The buttons don't have a tooltip setting, so I had to put text on them to be a11y compliant. There's a filter for both columns, which I find a little bit ugly and I might create an upstream PR that allows us to hide it. Also there's no way to hide some of the buttons as it was possible in the original implementation (which is IMO fine). (Edit)PasswordFieldThere's no input group (input addon) functionality in Carbon, so I don't know where to put the buttons for now. Asked UX to make my naive implementation a little bit better, waiting for their response. AsyncCredentials |
a107273
to
d145c32
Compare
Hangs on data-driven-forms/react-forms#896 |
75e2dbc
to
9f082f9
Compare
9f082f9
to
543a3bf
Compare
543a3bf
to
8454084
Compare
@himdel in that case carbon g10 form should look like this, we need some differentiation from BG to input fields or we can change theme to white to match with other non carbon pages in MIQ. |
Ah, then I suppose the question is, should we go with the white theme instead, or change the background color. Presumably there's a form class that does that though? If not, looks like the background color to use is |
diff --git a/app/stylesheet/carbon.scss b/app/stylesheet/carbon.scss
index 02b908287c..544085d254 100644
--- a/app/stylesheet/carbon.scss
+++ b/app/stylesheet/carbon.scss
@@ -14,7 +14,7 @@ $css--default-type: false;
-// Use the gray 90 theme
+// Use the white theme
@import '~@carbon/themes/scss/themes';
-$carbon--theme: $carbon--theme--g10;
+$carbon--theme: $carbon--theme--white;
@include carbon--theme();
@import '~carbon-components/scss/globals/scss/styles.scss'; |
48ae8f2
to
df1e19c
Compare
Okay, I (partially) addressed the issues, the dual-list should be fixed in the upstream package independently from this PR. I am looking for functional errors, like something not working that worked before so please do a sweep of the forms... |
@skateman i verified the branch,
|
Because the code editor doesn't do error highlighting, only syntax coloring, you can verify that in the patternfly version on master.
This is a styling issue |
df1e19c
to
2e9bda6
Compare
Checked commits skateman/manageiq-ui-classic@60c2a81~...2e9bda6 with ruby 2.6.3, rubocop 0.82.0, haml-lint 0.35.0, and yamllint |
@skateman tested in UI, looking good to me other than styling issues. What is the next step? |
lol, I guess to merge? 🤣 |
wasn't sure if @kavyanekkalapu is still testing or found any other issues. @kavyanekkalapu are you still testing this or are you good with merge? |
Extracted the styling issues into a separate issue so this can be safely merged. |
This replaces the old PF3 component mapper with the Carbon one, basically making all our DDF-based forms appear as Carbon forms. We have custom components that are appended to this mapper which should be addressed one by one:
detect-button (UX?)There's also a styling issue which is probably a collision with our stylesheets pulled in from Carbon. The demo provided by DDF uses a CDN link for the stylesheets so we might want to investigate the differences.
Resolves #7278