Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove background/shadow from connector icon #12142

Merged
merged 2 commits into from
Apr 20, 2022
Merged

Conversation

timroes
Copy link
Collaborator

@timroes timroes commented Apr 19, 2022

What

Removes the shadow and background color from the connector icon as discussed with Nico. This will also pull out the ConnectorIcon into its own (clearly named) component, separating it away from the ImageBlock component that also could render numbers inside those circle.

Using the ConnectorIcon component now in all places a connector icon is shown, e.g.

screenshot-20220419-175546

screenshot-20220419-175635

@timroes timroes requested a review from a team as a code owner April 19, 2022 16:00
@github-actions github-actions bot added the area/platform issues related to the platform label Apr 19, 2022
@timroes timroes self-assigned this Apr 19, 2022

import { getIcon } from "utils/imageUtils";

type Props = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
type Props = {
interface Props {

I found that there's an advantage of using interface over type for Props because with vscode codelens you are able to see references to each individual field.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, sorry that was a copy and paste error from copying that code from ImageBlock over :)

@timroes timroes merged commit 13e9230 into master Apr 20, 2022
@timroes timroes deleted the tim/connector-icon-style branch April 20, 2022 12:43
suhomud pushed a commit that referenced this pull request May 23, 2022
* Remove background/shadow from connector icon

* Convert type to interface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/platform issues related to the platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants