Skip to content
Merged
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
1 change: 0 additions & 1 deletion core/api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,6 @@ ion-gallery,prop,theme,"ios" | "md" | "ionic",undefined,false,false

ion-gallery-item,shadow
ion-gallery-item,prop,mode,"ios" | "md",undefined,false,false
ion-gallery-item,prop,theme,"ios" | "md" | "ionic",undefined,false,false

ion-grid,shadow
ion-grid,prop,fixed,boolean,false,false,false
Expand Down
8 changes: 0 additions & 8 deletions core/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1539,10 +1539,6 @@ export namespace Components {
* Resolve the layout from the parent `ion-gallery`. Called internally on load and connect, and by the gallery when its layout changes.
*/
"syncGalleryLayout": () => Promise<void>;
/**
* The theme determines the visual appearance of the component.
*/
"theme"?: "ios" | "md" | "ionic";
}
interface IonGrid {
/**
Expand Down Expand Up @@ -7411,10 +7407,6 @@ declare namespace LocalJSX {
* The mode determines the platform behaviors of the component.
*/
"mode"?: "ios" | "md";
/**
* The theme determines the visual appearance of the component.
*/
"theme"?: "ios" | "md" | "ionic";
}
interface IonGrid {
/**
Expand Down
5 changes: 0 additions & 5 deletions core/src/components/gallery-item/gallery-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ import type { ComponentInterface } from '@stencil/core';
import { Component, Element, Host, Method, State, h } from '@stencil/core';
import { printIonWarning } from '@utils/logging';

import { getIonTheme } from '../../global/ionic-global';

/**
* @virtualProp {"ios" | "md"} mode - The mode determines the platform behaviors of the component.
* @virtualProp {"ios" | "md" | "ionic"} theme - The theme determines the visual appearance of the component.
*
* @slot - The content placed inside of the gallery item. This is typically an
* `img`, but can be any element (e.g. a `figure` wrapping an image and caption).
Expand Down Expand Up @@ -71,12 +68,10 @@ export class GalleryItem implements ComponentInterface {

render() {
const { galleryLayout } = this;
const theme = getIonTheme(this);

return (
<Host
class={{
[theme]: true,
[`in-gallery-layout-${galleryLayout}`]: galleryLayout != undefined,
}}
>
Expand Down
4 changes: 2 additions & 2 deletions packages/angular/src/lazy/directives/proxies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -927,14 +927,14 @@ export declare interface IonGallery extends Components.IonGallery {}


@ProxyCmp({
inputs: ['mode', 'theme']
inputs: ['mode']
})
@Component({
selector: 'ion-gallery-item',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['mode', 'theme'],
inputs: ['mode'],
standalone: false
})
export class IonGalleryItem {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import { defineCustomElement as defineIonGalleryItem } from '@ionic/core/compone

@ProxyCmp({
defineCustomElementFn: defineIonGalleryItem,
inputs: ['mode', 'theme']
inputs: ['mode']
})
@Component({
selector: 'ion-gallery-item',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['mode', 'theme'],
inputs: ['mode'],
})
export class IonGalleryItem {
protected el: HTMLIonGalleryItemElement;
Expand Down
Loading