Skip to content

Commit

Permalink
edit recurrence button is aligned properly (#5590)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravi-kumar9347 authored Jan 5, 2024
1 parent 2bce3a3 commit 0fcacc2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/volto/news/5359.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
In the recurrence widget, set the vertical alignment of the `edit` button to `middle`. @Ravi-kumar9347
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ class RecurrenceWidget extends Component {
id={`${fieldSet || 'field'}-${id}`}
>
<Grid>
<Grid.Row stretched>
<Grid.Row stretched verticalAlign="middle">
<Grid.Column width="4">
<div className="wrapper">
<label htmlFor={`field-${id}`}>{title}</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ beforeAll(

const mockStore = configureStore();

test('renders a recurrence widget component', async () => {
test('renders a recurrence widget component with aligned columns', async () => {
const store = mockStore({
intl: {
locale: 'en',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`renders a recurrence widget component 1`] = `
exports[`renders a recurrence widget component with aligned columns 1`] = `
<div
className="inline field recurrence-widget"
id="field-my-field"
Expand All @@ -9,7 +9,7 @@ exports[`renders a recurrence widget component 1`] = `
className="ui grid"
>
<div
className="stretched row"
className="stretched middle aligned row"
>
<div
className="four wide column"
Expand Down

0 comments on commit 0fcacc2

Please sign in to comment.