Skip to content

Commit

Permalink
Fix date and time input styles
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillplatonov committed Mar 17, 2024
1 parent af3375b commit 98a6103
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/polaris_v12_overrides/tabs.pcss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
html[class~="Polaris-Summer-Editions-2023"] .Polaris-LegacyTabs__Wrapper {
margin-bottom: var(--p-space-200);

&:has(+.Polaris-IndexTable) {
margin-bottom: 0 !important;
}
}
5 changes: 5 additions & 0 deletions app/assets/stylesheets/polaris_v12_overrides/text_fields.pcss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
html[class~="Polaris-Summer-Editions-2023"] .Polaris-TextField {
input[type="date"], input[type="time"] {
display: block;
}
}
6 changes: 5 additions & 1 deletion app/assets/stylesheets/polaris_view_components.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/assets/stylesheets/polaris_view_components.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@
@import "./polaris_v12_overrides/index_table.pcss";
@import "./polaris_v12_overrides/footer_help.pcss";
@import "./polaris_v12_overrides/list.pcss";
@import "./polaris_v12_overrides/text_fields.pcss";

0 comments on commit 98a6103

Please sign in to comment.