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

chore(components): add missing version attributes #4916

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
63 changes: 0 additions & 63 deletions packages/components/src/components/post-alert/readme.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Component, Element, Host, h } from '@stencil/core';
import { version } from '@root/package.json';

/**
* @slot default- Slot for placing the content of the list item.
Expand All @@ -18,7 +19,7 @@ export class PostListItem {

render() {
return (
<Host role="listitem" slot="post-list-item">
<Host role="listitem" slot="post-list-item" version={version}>
<slot></slot>
</Host>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Component, Host, h, Element, State, Watch, Listen } from '@stencil/core';
import { version } from '@root/package.json';

const SCROLL_REPEAT_INTERVAL = 100; // Interval for repeated scrolling when holding down scroll button
const NAVBAR_DISABLE_DURATION = 400; // Duration to temporarily disable navbar interactions during scrolling
Expand Down Expand Up @@ -297,7 +298,7 @@ export class PostMainnavigation {

render() {
return (
<Host slot="post-mainnavigation">
<Host slot="post-mainnavigation" version={version}>
<div onClick={() => this.handleBackButtonClick()} class="back-button">
<slot name="back-button"></slot>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { getFocusableChildren } from '@/utils/get-focusable-children';
import { Component, Element, Event, EventEmitter, h, Host, Method, State } from '@stencil/core';
import { version } from '@root/package.json';
import { breakpoint } from '../../utils/breakpoints';

@Component({
Expand Down Expand Up @@ -204,7 +205,7 @@ export class PostMegadropdown {
const containerStyle = this.isVisible ? {} : { display: 'none' };

return (
<Host>
<Host version={version}>
<div
class={`megadropdown-container ${this.animationClass || ''}`}
style={containerStyle}
Expand Down
Loading