Skip to content

Commit

Permalink
fix(backdrop): use z index 40
Browse files Browse the repository at this point in the history
z-50 wouldn't leave space for the user to add elements over the backdrop
  • Loading branch information
estevanmaito committed Jul 12, 2020
1 parent bf3cb6e commit 48c4348
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/Backdrop.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('Backdrop', () => {

it('should render with base styles', () => {
const expected =
'fixed inset-0 z-50 flex items-end bg-black bg-opacity-50 sm:items-center sm:justify-center'
'fixed inset-0 z-40 flex items-end bg-black bg-opacity-50 sm:items-center sm:justify-center'
const wrapper = mount(<Backdrop />)

expect(wrapper.find(Backdrop).getDOMNode().getAttribute('class')).toContain(expected)
Expand Down
2 changes: 1 addition & 1 deletion src/themes/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default {
// Backdrop
backdrop: {
base:
'fixed inset-0 z-50 flex items-end bg-black bg-opacity-50 sm:items-center sm:justify-center',
'fixed inset-0 z-40 flex items-end bg-black bg-opacity-50 sm:items-center sm:justify-center',
},
// Textarea
textarea: {
Expand Down

0 comments on commit 48c4348

Please sign in to comment.