-
Notifications
You must be signed in to change notification settings - Fork 138
fix(core): signalify skeleton and update jsdoc #13699
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for fundamental-ngx ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
| * Unique ID for SVG mask element. | ||
| * @hidden | ||
| */ | ||
| protected readonly _id = `fd-skeleton-${skeletonUniqueId++}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a private attr and should not be prefixed with underscore (it's used in the template).
| * Last line is 60% width when there are multiple lines. | ||
| * @hidden | ||
| */ | ||
| protected readonly _textLineWidths = computed(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same for this one. It's used in the template. We prefix with underscore only private properties.
| const currentHeight = this.height(); | ||
|
|
||
| if (currentType === 'text') { | ||
| const lines = this.textLines() || 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fallback to 1 should never be needed since textLines has a default value set to 3
| const lines = this.textLines() || 1; | ||
| return { | ||
| width: currentWidth ?? '100%', | ||
| height: currentHeight ?? (lines > 1 ? `${20 * lines}px` : '8px') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This magic number 20 can be a protected member of the class, say LINE_HEIGHT, which can also be used in the template (line 19).

signalify skeleton and update jsdoc