Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@uifabric/experiments",
"comment": "Tile: exporting an enum to use the values in creating a PlaceholderTile in Shimmer component.",
"type": "patch"
}
],
"packageName": "@uifabric/experiments",
"email": "v-vibr@microsoft.com"
}
4 changes: 2 additions & 2 deletions packages/experiments/src/components/Tile/Tile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const SignalStyles: any = SignalStylesModule;
const CheckStyles: any = CheckStylesModule;
// tslint:enable:no-any

const enum TileLayoutValues {
export const enum TileLayoutValues {
nameplatePadding = 12,
largeNameplateNameHeight = 15,
smallNameplateNameHeight = 12,
Expand All @@ -29,7 +29,7 @@ export interface ITileState {
isModal?: boolean;
}

const SIZES: {
export const SIZES: {

@dzearing dzearing Apr 9, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

instead of exporting "SIZES", can you rename this to something specific to tile, and use TitleCasing?

TileLayoutSizes would be reasonable.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Think of it like this: When you import {} from '@uifabric/experiments'; the intellisense will suggest importing SIZES. Does that make sense to the caller?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Got it. Thanks for the feedback. I guess if you are putting it in the context of intellisense when importing makes total sense.

[P in TileSize]: {
nameplatePadding: number;
nameplateNameHeight: number;
Expand Down