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

Adds Image web component #26936

Merged
merged 7 commits into from
Feb 24, 2023
Merged

Adds Image web component #26936

merged 7 commits into from
Feb 24, 2023

Conversation

halerankin
Copy link
Contributor

@halerankin halerankin commented Feb 21, 2023

This is a copy of all Image component changes into a new PR.
Previous PR with comments: #26622

Here's the component design spec

@fabricteam
Copy link
Collaborator

fabricteam commented Feb 21, 2023

📊 Bundle size report

🤖 This report was generated against 1fd04e2e0e2cdb34c35ee462da4ebb587b56766c

@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 21, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e8dcc4e:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@size-auditor
Copy link

size-auditor bot commented Feb 21, 2023

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: 1fd04e2e0e2cdb34c35ee462da4ebb587b56766c (build)

@Hotell Hotell removed their assignment Feb 22, 2023
packages/web-components/src/image/image.docs.md Outdated Show resolved Hide resolved
packages/web-components/src/image/image.docs.md Outdated Show resolved Hide resolved
packages/web-components/src/image/image.docs.md Outdated Show resolved Hide resolved
packages/web-components/src/index.ts Outdated Show resolved Hide resolved
packages/web-components/src/image/image.ts Outdated Show resolved Hide resolved
packages/web-components/src/image/image.ts Outdated Show resolved Hide resolved
…mplifies the bordered attribute. Removes multiple image from first story. Adjusts style attribute selctor for bordered.
…s CSS Guidance to spec to convey details about margin and border-radius values. Cleaned up story code.
@halerankin
Copy link
Contributor Author

Thanks for today's feedback @miroslavstastny and @chrisdholt
I just pushed new changes.

Copy link
Member

@chrisdholt chrisdholt left a comment

Choose a reason for hiding this comment

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

@halerankin don't forget the package export in the package.json

Copy link
Member

@chrisdholt chrisdholt left a comment

Choose a reason for hiding this comment

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

One missing thing is the package export path in the package.json for the component. With that and the two noted changes I think this looks good - let's make sure that @miroslavstastny has a chance to do a final pass as well.

…optional. Replaces hard coded border radius value with token.
…a6128e.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
@chrisdholt chrisdholt merged commit e793ad8 into microsoft:web-components-v3 Feb 24, 2023
chrisdholt added a commit that referenced this pull request Apr 29, 2024
* Adds Image web component.

* Removes unused portions of the doc file (now spec.md). Renames and simplifies the bordered attribute. Removes multiple image from first story. Adjusts style attribute selctor for bordered.

* Removes unused CSS. Changes dimension of image used in first story.

* Removes borderRadius attribute and related story code and styles. Adds CSS Guidance to spec to convey details about margin and border-radius values. Cleaned up story code.

* Records results of yarn change

* Updates package with reference to the component. Makes fit and shape optional. Replaces hard coded border radius value with token.

* Update change/@fluentui-web-components-a862230b-9028-4c6a-8a43-3be819a6128e.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit to radium-v/fluentui that referenced this pull request Apr 29, 2024
* Adds Image web component.

* Removes unused portions of the doc file (now spec.md). Renames and simplifies the bordered attribute. Removes multiple image from first story. Adjusts style attribute selctor for bordered.

* Removes unused CSS. Changes dimension of image used in first story.

* Removes borderRadius attribute and related story code and styles. Adds CSS Guidance to spec to convey details about margin and border-radius values. Cleaned up story code.

* Records results of yarn change

* Updates package with reference to the component. Makes fit and shape optional. Replaces hard coded border radius value with token.

* Update change/@fluentui-web-components-a862230b-9028-4c6a-8a43-3be819a6128e.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit to radium-v/fluentui that referenced this pull request Apr 29, 2024
* Adds Image web component.

* Removes unused portions of the doc file (now spec.md). Renames and simplifies the bordered attribute. Removes multiple image from first story. Adjusts style attribute selctor for bordered.

* Removes unused CSS. Changes dimension of image used in first story.

* Removes borderRadius attribute and related story code and styles. Adds CSS Guidance to spec to convey details about margin and border-radius values. Cleaned up story code.

* Records results of yarn change

* Updates package with reference to the component. Makes fit and shape optional. Replaces hard coded border radius value with token.

* Update change/@fluentui-web-components-a862230b-9028-4c6a-8a43-3be819a6128e.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit to radium-v/fluentui that referenced this pull request Apr 30, 2024
* Adds Image web component.

* Removes unused portions of the doc file (now spec.md). Renames and simplifies the bordered attribute. Removes multiple image from first story. Adjusts style attribute selctor for bordered.

* Removes unused CSS. Changes dimension of image used in first story.

* Removes borderRadius attribute and related story code and styles. Adds CSS Guidance to spec to convey details about margin and border-radius values. Cleaned up story code.

* Records results of yarn change

* Updates package with reference to the component. Makes fit and shape optional. Replaces hard coded border radius value with token.

* Update change/@fluentui-web-components-a862230b-9028-4c6a-8a43-3be819a6128e.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit that referenced this pull request Apr 30, 2024
* Adds Image web component.

* Removes unused portions of the doc file (now spec.md). Renames and simplifies the bordered attribute. Removes multiple image from first story. Adjusts style attribute selctor for bordered.

* Removes unused CSS. Changes dimension of image used in first story.

* Removes borderRadius attribute and related story code and styles. Adds CSS Guidance to spec to convey details about margin and border-radius values. Cleaned up story code.

* Records results of yarn change

* Updates package with reference to the component. Makes fit and shape optional. Replaces hard coded border radius value with token.

* Update change/@fluentui-web-components-a862230b-9028-4c6a-8a43-3be819a6128e.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit that referenced this pull request May 2, 2024
* Adds Image web component.

* Removes unused portions of the doc file (now spec.md). Renames and simplifies the bordered attribute. Removes multiple image from first story. Adjusts style attribute selctor for bordered.

* Removes unused CSS. Changes dimension of image used in first story.

* Removes borderRadius attribute and related story code and styles. Adds CSS Guidance to spec to convey details about margin and border-radius values. Cleaned up story code.

* Records results of yarn change

* Updates package with reference to the component. Makes fit and shape optional. Replaces hard coded border radius value with token.

* Update change/@fluentui-web-components-a862230b-9028-4c6a-8a43-3be819a6128e.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit that referenced this pull request May 2, 2024
* Adds Image web component.

* Removes unused portions of the doc file (now spec.md). Renames and simplifies the bordered attribute. Removes multiple image from first story. Adjusts style attribute selctor for bordered.

* Removes unused CSS. Changes dimension of image used in first story.

* Removes borderRadius attribute and related story code and styles. Adds CSS Guidance to spec to convey details about margin and border-radius values. Cleaned up story code.

* Records results of yarn change

* Updates package with reference to the component. Makes fit and shape optional. Replaces hard coded border radius value with token.

* Update change/@fluentui-web-components-a862230b-9028-4c6a-8a43-3be819a6128e.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit that referenced this pull request May 2, 2024
* Adds Image web component.

* Removes unused portions of the doc file (now spec.md). Renames and simplifies the bordered attribute. Removes multiple image from first story. Adjusts style attribute selctor for bordered.

* Removes unused CSS. Changes dimension of image used in first story.

* Removes borderRadius attribute and related story code and styles. Adds CSS Guidance to spec to convey details about margin and border-radius values. Cleaned up story code.

* Records results of yarn change

* Updates package with reference to the component. Makes fit and shape optional. Replaces hard coded border radius value with token.

* Update change/@fluentui-web-components-a862230b-9028-4c6a-8a43-3be819a6128e.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit that referenced this pull request May 3, 2024
* Adds Image web component.

* Removes unused portions of the doc file (now spec.md). Renames and simplifies the bordered attribute. Removes multiple image from first story. Adjusts style attribute selctor for bordered.

* Removes unused CSS. Changes dimension of image used in first story.

* Removes borderRadius attribute and related story code and styles. Adds CSS Guidance to spec to convey details about margin and border-radius values. Cleaned up story code.

* Records results of yarn change

* Updates package with reference to the component. Makes fit and shape optional. Replaces hard coded border radius value with token.

* Update change/@fluentui-web-components-a862230b-9028-4c6a-8a43-3be819a6128e.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit that referenced this pull request May 6, 2024
* Adds Image web component.

* Removes unused portions of the doc file (now spec.md). Renames and simplifies the bordered attribute. Removes multiple image from first story. Adjusts style attribute selctor for bordered.

* Removes unused CSS. Changes dimension of image used in first story.

* Removes borderRadius attribute and related story code and styles. Adds CSS Guidance to spec to convey details about margin and border-radius values. Cleaned up story code.

* Records results of yarn change

* Updates package with reference to the component. Makes fit and shape optional. Replaces hard coded border radius value with token.

* Update change/@fluentui-web-components-a862230b-9028-4c6a-8a43-3be819a6128e.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit that referenced this pull request May 6, 2024
* Adds Image web component.

* Removes unused portions of the doc file (now spec.md). Renames and simplifies the bordered attribute. Removes multiple image from first story. Adjusts style attribute selctor for bordered.

* Removes unused CSS. Changes dimension of image used in first story.

* Removes borderRadius attribute and related story code and styles. Adds CSS Guidance to spec to convey details about margin and border-radius values. Cleaned up story code.

* Records results of yarn change

* Updates package with reference to the component. Makes fit and shape optional. Replaces hard coded border radius value with token.

* Update change/@fluentui-web-components-a862230b-9028-4c6a-8a43-3be819a6128e.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit that referenced this pull request May 8, 2024
* Adds Image web component.

* Removes unused portions of the doc file (now spec.md). Renames and simplifies the bordered attribute. Removes multiple image from first story. Adjusts style attribute selctor for bordered.

* Removes unused CSS. Changes dimension of image used in first story.

* Removes borderRadius attribute and related story code and styles. Adds CSS Guidance to spec to convey details about margin and border-radius values. Cleaned up story code.

* Records results of yarn change

* Updates package with reference to the component. Makes fit and shape optional. Replaces hard coded border radius value with token.

* Update change/@fluentui-web-components-a862230b-9028-4c6a-8a43-3be819a6128e.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
radium-v pushed a commit that referenced this pull request May 10, 2024
* Adds Image web component.

* Removes unused portions of the doc file (now spec.md). Renames and simplifies the bordered attribute. Removes multiple image from first story. Adjusts style attribute selctor for bordered.

* Removes unused CSS. Changes dimension of image used in first story.

* Removes borderRadius attribute and related story code and styles. Adds CSS Guidance to spec to convey details about margin and border-radius values. Cleaned up story code.

* Records results of yarn change

* Updates package with reference to the component. Makes fit and shape optional. Replaces hard coded border radius value with token.

* Update change/@fluentui-web-components-a862230b-9028-4c6a-8a43-3be819a6128e.json

Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>

---------

Co-authored-by: Chris Holt <chhol@microsoft.com>
Co-authored-by: Miroslav Stastny <mistastn@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants