Skip to content

Commit

Permalink
🔥 Delete obsoleted .admin-fieldset styling
Browse files Browse the repository at this point in the history
This used to be required to deal with styling from rjsf, but that
dependency has been removed so we can stick to the normal Django
styling instead.
  • Loading branch information
sergei-maertens committed Nov 29, 2024
1 parent 88ed3e7 commit f287c60
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const DataRemoval = ({submissionsRemovalOptions, onChange}) => {
} = submissionsRemovalOptions;

return (
<Fieldset extraClassName="admin-fieldset">
<Fieldset>
<FormRow>
<Field
name="form.submissionsRemovalOptions.successfulSubmissionsRemovalLimit"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const PaymentFields = ({backends = [], selectedBackend = '', backendOptions = {}

return (
<Fieldset
extraClassName="admin-fieldset"
title={
<FormattedMessage
description="Payment provider fieldset title"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export const PriceLogic = ({variableKey, onFieldChange}) => {

return (
<Fieldset
extraClassName="admin-fieldset"
title={
<FormattedMessage
description="Dynamic pricing fieldset title"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const ProductFields = ({selectedProduct = null, onChange}) => {
const productChoices = products.map(product => [product.url, product.name]);
return (
<Fieldset
extraClassName="admin-fieldset"
title={<FormattedMessage description="Product fieldset title" defaultMessage="Product" />}
>
<FormRow>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ const BackendFields = ({index = 0, backend, availableBackends = [], onChange, on
return (
<Fieldset
style={{'--of-add-another-text': `"${addAnotherMsg}"`}}
extraClassName="admin-fieldset"
title={
<>
{backend.name || backend.key}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const DMNActionConfig = ({initialValues, onSave}) => {
>
{formik => (
<Form>
<fieldset className="admin-fieldset aligned">
<fieldset className="aligned">
<div className="form-row form-row--no-bottom-line">
<Field
name="pluginId"
Expand Down Expand Up @@ -232,7 +232,7 @@ const DMNActionConfig = ({initialValues, onSave}) => {
/>
}
>
<fieldset className="admin-fieldset aligned">
<fieldset className="aligned">
<div className="form-row form-row--no-bottom-line">
<DecisionDefinitionIdField />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ const ServiceFetchConfigurationForm = ({formik, selectExisting = false}) => {
description="Service fetch configuration modal basic fieldset title"
/>
}
extraClassName="admin-fieldset"
>
<FormRow>
<Field
Expand Down Expand Up @@ -239,7 +238,6 @@ const ServiceFetchConfigurationForm = ({formik, selectExisting = false}) => {
description="Service fetch configuration modal data extraction fieldset title"
/>
}
extraClassName="admin-fieldset"
>
<FormRow>
<Field
Expand Down Expand Up @@ -348,7 +346,6 @@ const ServiceFetchConfigurationForm = ({formik, selectExisting = false}) => {
description="Service fetch configuration try it out tabpanel full request fieldset title"
/>
}
extraClassName="admin-fieldset"
>
<FormRow>
{/* TODO https://github.com/open-formulieren/open-forms/issues/2777 */}
Expand All @@ -367,7 +364,6 @@ const ServiceFetchConfigurationForm = ({formik, selectExisting = false}) => {
description="Service fetch configuration try it out tabpanel data extraction fieldset title"
/>
}
extraClassName="admin-fieldset"
>
<FormRow>
{/* TODO https://github.com/open-formulieren/open-forms/issues/2777 */}
Expand Down
22 changes: 0 additions & 22 deletions src/openforms/scss/components/builder/_builder.scss
Original file line number Diff line number Diff line change
Expand Up @@ -157,28 +157,6 @@ div.flatpickr-calendar.open {
}
}

// rjsf styling competing with bootstrap, competing with django admin.....
.admin-fieldset {
margin-bottom: 0;

.form-row {
&,
* {
box-sizing: border-box !important;
}
}

.form-row {
display: block;
margin-left: 0;
margin-right: 0;

ul.errorlist {
padding-left: 0px;
}
}
}

.gu-transit {
// #748 client requested increased contrast for this element
// here we clobber formio's compiled 0.2 opacity of the drag-and-drop target indicator
Expand Down

0 comments on commit f287c60

Please sign in to comment.