You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR#28396 originally addressed an update via issue #23983 to make images more visible with a white background (implementation of gray "lightbox").
This PR implements those styles defined in PR#28396.
PR Close#33259
Copy file name to clipboardExpand all lines: aio/content/guide/animations.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,8 +69,10 @@ Let's animate a simple transition that changes a single HTML element from one st
69
69
70
70
In HTML, these attributes are set using ordinary CSS styles such as color and opacity. In Angular, use the `style()` function to specify a set of CSS styles for use with animations. You can collect a set of styles in an animation state, and give the state a name, such as `open` or `closed`.
71
71
72
-
<figure>
73
-
<imgsrc="generated/images/guide/animations/open-closed.png"alt="open and closed states">
72
+
<figureclass="lightbox">
73
+
<divclass="card">
74
+
<img src="generated/images/guide/animations/open-closed.png" alt="open and closed states">
75
+
</div>
74
76
</figure>
75
77
76
78
### Animation state and styles
@@ -166,8 +168,10 @@ The `trigger()` function describes the property name to watch for changes. When
166
168
167
169
In this example, we'll name the trigger `openClose`, and attach it to the `button` element. The trigger describes the open and closed states, and the timings for the two transitions.
168
170
169
-
<figure>
170
-
<imgsrc="generated/images/guide/animations/triggering-the-animation.png"alt="triggering the animation">
171
+
<figureclass="lightbox">
172
+
<divclass="card">
173
+
<img src="generated/images/guide/animations/triggering-the-animation.png" alt="triggering the animation">
Copy file name to clipboardExpand all lines: aio/content/guide/architecture-components.md
+16-8Lines changed: 16 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,8 +51,10 @@ You define a component's view with its companion template. A template is a form
51
51
52
52
Views are typically arranged hierarchically, allowing you to modify or show and hide entire UI sections or pages as a unit. The template immediately associated with a component defines that component's *host view*. The component can also define a *view hierarchy*, which contains *embedded views*, hosted by other components.
A view hierarchy can include views from components in the same NgModule, but it also can (and often does) include views from components that are defined in different NgModules.
@@ -81,8 +83,10 @@ Angular supports *two-way data binding*, a mechanism for coordinating the parts
81
83
82
84
The following diagram shows the four forms of data binding markup. Each form has a direction: to the DOM, from the DOM, or both.
Data binding plays an important role in communication between a template and its component, and is also important for communication between parent and child components.
Copy file name to clipboardExpand all lines: aio/content/guide/architecture-modules.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,20 +35,20 @@ Here's a simple root NgModule definition.
35
35
36
36
NgModules provide a *compilation context* for their components. A root NgModule always has a root component that is created during bootstrap, but any NgModule can include any number of additional components, which can be loaded through the router or created through the template. The components that belong to an NgModule share a compilation context.
A component and its template together define a *view*. A component can contain a *view hierarchy*, which allows you to define arbitrarily complex areas of the screen that can be created, modified, and destroyed as a unit. A view hierarchy can mix views defined in components that belong to different NgModules. This is often the case, especially for UI libraries.
@@ -347,8 +359,10 @@ You learned about some other methods in [Dependency Providers](guide/dependency-
347
359
The following `HeroOfTheMonthComponent` example demonstrates many of the alternatives and why you need them.
348
360
It's visually simple: a few properties and the logs produced by a logger.
349
361
350
-
<figure>
351
-
<imgsrc="generated/images/guide/dependency-injection-in-action/hero-of-month.png"alt="Hero of the month">
362
+
<figureclass="lightbox">
363
+
<divclass="card">
364
+
<img src="generated/images/guide/dependency-injection-in-action/hero-of-month.png" alt="Hero of the month">
365
+
</div>
352
366
</figure>
353
367
354
368
The code behind it customizes how and where the DI framework provides dependencies.
@@ -460,8 +474,10 @@ The following example puts `MinimalLogger` to use in a simplified version of `He
460
474
461
475
The `HeroOfTheMonthComponent` constructor's `logger` parameter is typed as `MinimalLogger`, so only the `logs` and `logInfo` members are visible in a TypeScript-aware editor.
0 commit comments