question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

🐛 Bug - `v3.63.3` breaks Button and Select styles

See original GitHub issue

Forma 36 bug report

Summary

You are probably already aware of it, but @contentful/forma-36-react-components@3.63.3 breaks some styles for me. I didn’t do anything differently with v3.63.2 and it works.

I started working on a UI extension yesterday which looks like this:

import {
  Button,
  SelectField,
  Option,
} from '@contentful/forma-36-react-components'

const Sidebar = () => {
  return (
    <div className={styles.container}>
      <div className={styles.select}>
        <SelectField
          id="selectEnvironment"
          name="selectEnvironment"
          labelText="Select environment"
          onChange={event => setEnv(event.target.value)}
          width="full"
          willBlurOnEsc
        >
          <Option value="next">Next</Option>
          <Option value="production">Production</Option>
        </SelectField>
      </div>
      <Button
        buttonType="primary"
        isFullWidth
        onClick={() => console.info(`Deploying to ${env}...`)}
      >
        Deploy content
      </Button>
    </div>
  )
}

After running yarn install again today, I saw broken styles:

v3.63.3

image

v3.63.2

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gregoralbrechtcommented, Nov 26, 2020

Sorry, I can’t share the lock file since this is client work. If you can’t reproduce this it might be an issue on our end, though. Just wanted to raise in case you wanted to know 😃

0reactions
gregoralbrechtcommented, Nov 27, 2020

Sorry for the late reply. Glad you found it, makes sense it was missing CSS variables. Thanks for fixing it! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Insert or delete a page break - Microsoft Support
Insert a page break. Place the cursor where you want to start a new page. Select Insert > Page Break. Change page break...
Read more >
Managing pagination (or, avoiding page breaks where you ...
Managing pagination (or, avoiding page breaks where you don't want them). The worst way to manage pagination is to do Insert > Page...
Read more >
Why selecting by ID is not recommended in CSS? [closed]
I disagree with the idea of never using IDs for selecting elements, however I do understand the reasoning. Oftentimes developers will use a ......
Read more >
react-native/CHANGELOG.md at main - GitHub
A framework for building native applications using React - react-native/CHANGELOG.md at main · facebook/react-native.
Read more >
How to Insert Page Breaks in Microsoft Word (PC & Mac)
Recommended First Step: Select the Show/Hide button in the Home tab to show the formatting marks in your document, including page breaks.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found