Skip to content

Commit fe4447d

Browse files
sjtrimblealxhub
authored andcommitted
feat(docs-infra): simplify image styles and remove figure references (angular#33748)
Reference angular#33259 Removes figures elements as AIO is not typically using captions or image groups where figures would be necessary or appropriate PR Close angular#33748
1 parent 72b9276 commit fe4447d

47 files changed

Lines changed: 521 additions & 870 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

aio/content/guide/animations.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,9 @@ Let's animate a simple transition that changes a single HTML element from one st
6969

7070
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`.
7171

72-
<figure class="lightbox">
73-
<div class="card">
74-
<img src="generated/images/guide/animations/open-closed.png" alt="open and closed states">
75-
</div>
76-
</figure>
72+
<div class="lightbox">
73+
<img src="generated/images/guide/animations/open-closed.png" alt="open and closed states">
74+
</div>
7775

7876
### Animation state and styles
7977

@@ -168,11 +166,9 @@ The `trigger()` function describes the property name to watch for changes. When
168166

169167
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.
170168

171-
<figure class="lightbox">
172-
<div class="card">
173-
<img src="generated/images/guide/animations/triggering-the-animation.png" alt="triggering the animation">
174-
</div>
175-
</figure>
169+
<div class="lightbox">
170+
<img src="generated/images/guide/animations/triggering-the-animation.png" alt="triggering the animation">
171+
</div>
176172

177173
<div class="alert is-helpful">
178174

aio/content/guide/architecture-components.md

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,9 @@ You define a component's view with its companion template. A template is a form
5151

5252
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.
5353

54-
<figure class="lightbox">
55-
<div class="card">
56-
<img src="generated/images/guide/architecture/component-tree.png" alt="Component tree" class="left">
57-
</div>
58-
</figure>
54+
<div class="lightbox">
55+
<img src="generated/images/guide/architecture/component-tree.png" alt="Component tree" class="left">
56+
</div>
5957

6058
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.
6159

@@ -83,11 +81,9 @@ Angular supports *two-way data binding*, a mechanism for coordinating the parts
8381

8482
The following diagram shows the four forms of data binding markup. Each form has a direction: to the DOM, from the DOM, or both.
8583

86-
<figure class="lightbox">
87-
<div class="card">
88-
<img src="generated/images/guide/architecture/databinding.png" alt="Data Binding" class="left">
89-
</div>
90-
</figure>
84+
<div class="lightbox">
85+
<img src="generated/images/guide/architecture/databinding.png" alt="Data Binding" class="left">
86+
</div>
9187

9288
This example from the `HeroListComponent` template uses three of these forms.
9389

@@ -114,19 +110,15 @@ as with event binding.
114110
Angular processes *all* data bindings once for each JavaScript event cycle,
115111
from the root of the application component tree through all child components.
116112

117-
<figure class="lightbox">
118-
<div class="card">
119-
<img src="generated/images/guide/architecture/component-databinding.png" alt="Data Binding" class="left">
120-
</div>
121-
</figure>
113+
<div class="lightbox">
114+
<img src="generated/images/guide/architecture/component-databinding.png" alt="Data Binding" class="left">
115+
</div>
122116

123117
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.
124118

125-
<figure class="lightbox">
126-
<div class="card">
127-
<img src="generated/images/guide/architecture/parent-child-binding.png" alt="Parent/Child binding" class="left">
128-
</div>
129-
</figure>
119+
<div class="lightbox">
120+
<img src="generated/images/guide/architecture/parent-child-binding.png" alt="Parent/Child binding" class="left">
121+
</div>
130122

131123
### Pipes
132124

aio/content/guide/architecture-modules.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,17 @@ Here's a simple root NgModule definition.
3535

3636
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.
3737

38-
<figure class="lightbox">
39-
<div class="card">
40-
<img src="generated/images/guide/architecture/compilation-context.png" alt="Component compilation context" class="left">
41-
</div>
42-
</figure>
38+
<div class="lightbox">
39+
<img src="generated/images/guide/architecture/compilation-context.png" alt="Component compilation context" class="left">
40+
</div>
4341

4442
<br class="clear">
4543

4644
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.
4745

48-
<figure class="lightbox">
49-
<div class="card">
50-
<img src="generated/images/guide/architecture/view-hierarchy.png" alt="View hierarchy" class="left">
51-
</div>
52-
</figure>
46+
<div class="lightbox">
47+
<img src="generated/images/guide/architecture/view-hierarchy.png" alt="View hierarchy" class="left">
48+
</div>
5349

5450
<br class="clear">
5551

aio/content/guide/architecture-services.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,9 @@ When all requested services have been resolved and returned, Angular can call th
7070

7171
The process of `HeroService` injection looks something like this.
7272

73-
<figure class="lightbox">
74-
<div class="card">
75-
<img src="generated/images/guide/architecture/injector-injects.png" alt="Service" class="left">
76-
</div>
77-
</figure>
73+
<div class="lightbox">
74+
<img src="generated/images/guide/architecture/injector-injects.png" alt="Service" class="left">
75+
</div>
7876

7977
### Providing services
8078

aio/content/guide/architecture.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,9 @@ To define navigation rules, you associate *navigation paths* with your component
113113

114114
You've learned the basics about the main building blocks of an Angular application. The following diagram shows how these basic pieces are related.
115115

116-
<figure class="lightbox">
117-
<div class="card">
118-
<img src="generated/images/guide/architecture/overview2.png" alt="overview">
119-
</div>
120-
</figure>
116+
<div class="lightbox">
117+
<img src="generated/images/guide/architecture/overview2.png" alt="overview">
118+
</div>
121119

122120
* Together, a component and template define an Angular view.
123121
* A decorator on a component class adds the metadata, including a pointer to the associated template.

aio/content/guide/attribute-directives.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,9 @@ Here's the updated directive in full:
175175
Run the app and confirm that the background color appears when
176176
the mouse hovers over the `p` and disappears as it moves out.
177177

178-
<figure class="lightbox">
179-
<div class="card">
180-
<img src="generated/images/guide/attribute-directives/highlight-directive-anim.gif" alt="Second Highlight">
181-
</div>
182-
</figure>
178+
<div class="lightbox">
179+
<img src="generated/images/guide/attribute-directives/highlight-directive-anim.gif" alt="Second Highlight">
180+
</div>
183181

184182
{@a bindings}
185183

@@ -273,11 +271,9 @@ Revise the `AppComponent.color` so that it has no initial value.
273271

274272
Here are the harness and directive in action.
275273

276-
<figure class="lightbox">
277-
<div class="card">
278-
<img src="generated/images/guide/attribute-directives/highlight-directive-v2-anim.gif" alt="Highlight v.2">
279-
</div>
280-
</figure>
274+
<div class="lightbox">
275+
<img src="generated/images/guide/attribute-directives/highlight-directive-v2-anim.gif" alt="Highlight v.2">
276+
</div>
281277

282278
{@a second-property}
283279

@@ -311,11 +307,9 @@ because you made it _public_ with the `@Input` decorator.
311307

312308
Here's how the harness should work when you're done coding.
313309

314-
<figure class="lightbox">
315-
<div class="card">
316-
<img src="generated/images/guide/attribute-directives/highlight-directive-final-anim.gif" alt="Final Highlight">
317-
</div>
318-
</figure>
310+
<div class="lightbox">
311+
<img src="generated/images/guide/attribute-directives/highlight-directive-final-anim.gif" alt="Final Highlight">
312+
</div>
319313

320314
## Summary
321315

aio/content/guide/component-interaction.md

Lines changed: 18 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,9 @@ and each iteration's `hero` instance to the child's `hero` property.
5050
The running application displays three heroes:
5151

5252

53-
<figure class="lightbox">
54-
<div class="card">
55-
<img src="generated/images/guide/component-interaction/parent-to-child.png" alt="Parent-to-child">
56-
</div>
57-
</figure>
53+
<div class="lightbox">
54+
<img src="generated/images/guide/component-interaction/parent-to-child.png" alt="Parent-to-child">
55+
</div>
5856

5957

6058

@@ -96,11 +94,9 @@ Here's the `NameParentComponent` demonstrating name variations including a name
9694

9795

9896

99-
<figure class="lightbox">
100-
<div class="card">
101-
<img src="generated/images/guide/component-interaction/setter.png" alt="Parent-to-child-setter">
102-
</div>
103-
</figure>
97+
<div class="lightbox">
98+
<img src="generated/images/guide/component-interaction/setter.png" alt="Parent-to-child-setter">
99+
</div>
104100

105101

106102

@@ -156,11 +152,9 @@ The `VersionParentComponent` supplies the `minor` and `major` values and binds b
156152
Here's the output of a button-pushing sequence:
157153

158154

159-
<figure class="lightbox">
160-
<div class="card">
161-
<img src="generated/images/guide/component-interaction/parent-to-child-on-changes.gif" alt="Parent-to-child-onchanges">
162-
</div>
163-
</figure>
155+
<div class="lightbox">
156+
<img src="generated/images/guide/component-interaction/parent-to-child-on-changes.gif" alt="Parent-to-child-onchanges">
157+
</div>
164158

165159

166160

@@ -212,11 +206,9 @@ The framework passes the event argument&mdash;represented by `$event`&mdash;to t
212206
and the method processes it:
213207

214208

215-
<figure class="lightbox">
216-
<div class="card">
217-
<img src="generated/images/guide/component-interaction/child-to-parent.gif" alt="Child-to-parent">
218-
</div>
219-
</figure>
209+
<div class="lightbox">
210+
<img src="generated/images/guide/component-interaction/child-to-parent.gif" alt="Child-to-parent">
211+
</div>
220212

221213

222214

@@ -276,11 +268,9 @@ uses interpolation to display the child's `seconds` property.
276268
Here we see the parent and child working together.
277269

278270

279-
<figure class="lightbox">
280-
<div class="card">
281-
<img src="generated/images/guide/component-interaction/countdown-timer-anim.gif" alt="countdown timer">
282-
</div>
283-
</figure>
271+
<div class="lightbox">
272+
<img src="generated/images/guide/component-interaction/countdown-timer-anim.gif" alt="countdown timer">
273+
</div>
284274

285275

286276

@@ -431,11 +421,9 @@ the parent `MissionControlComponent` and the `AstronautComponent` children,
431421
facilitated by the service:
432422

433423

434-
<figure class="lightbox">
435-
<div class="card">
436-
<img src="generated/images/guide/component-interaction/bidirectional-service.gif" alt="bidirectional-service">
437-
</div>
438-
</figure>
424+
<div class="lightbox">
425+
<img src="generated/images/guide/component-interaction/bidirectional-service.gif" alt="bidirectional-service">
426+
</div>
439427

440428

441429

0 commit comments

Comments
 (0)