Skip to content

v5: Drop .media#28265

Merged
XhmikosR merged 7 commits intomasterfrom
v5-drop-media
May 8, 2019
Merged

v5: Drop .media#28265
XhmikosR merged 7 commits intomasterfrom
v5-drop-media

Conversation

@mdo
Copy link
Member

@mdo mdo commented Feb 14, 2019

The media component is basically a series of utilities that have been assigned to a more unique name. This can all be done via our other utility classes.

@mdo mdo requested a review from a team as a code owner February 14, 2019 17:54
@XhmikosR XhmikosR changed the title v5: Drop .media Feb 14, 2019
@MartijnCuppens
Copy link
Member

Deprecate the component in v4.3.2 /cc @MartijnCuppens

We can't use the deprecate() mixin here since we can only use it in mixins of functions, not in for selectors. I guess we'll just need to document this in the migration doc.

@MartijnCuppens
Copy link
Member

About the deprecation notice: we could just add a message to the v4 docs this will be removed.

@mdo
Copy link
Member Author

mdo commented May 8, 2019

Should be ready for review now, @twbs/css-review.

@mdo
Copy link
Member Author

mdo commented May 8, 2019

@ysds Done!

@XhmikosR XhmikosR changed the title [WIP] v5: Drop .media May 8, 2019
@XhmikosR
Copy link
Member

XhmikosR commented May 8, 2019

@XhmikosR XhmikosR merged commit d806e87 into master May 8, 2019
@XhmikosR XhmikosR deleted the v5-drop-media branch May 8, 2019 18:45
@suhailvs
Copy link

is there any example of how to create a media object using utility class?

@martinbean
Copy link
Contributor

@suhailvs A “media” component with a left media and right body:

<div class="d-flex">
  <div class="flex-shrink-0">
    <img src="https://placekitten.com/100" alt="Placekitten">
  </div>
  <div class="flex-grow-1 pl-3">
    <p>An image of a cat.</p>
  </div>
</div>
@obask
Copy link

obask commented Jan 31, 2021

Could you please add this example into docs, so people won't have to wonder why you dropped media-object and media-list?

@ffoodd ffoodd mentioned this pull request Feb 4, 2021
crhistianramirez pushed a commit to crhistianramirez/headstart that referenced this pull request Dec 28, 2022
Dropped the .media component as it can be easily replicated with utilities. See twbs/bootstrap#28265 and the flex utilities page for an example https://getbootstrap.com/docs/5.0/utilities/flex/#media-object
HmRakib14 pushed a commit to HmRakib14/headstart that referenced this pull request May 22, 2025
Dropped the .media component as it can be easily replicated with utilities. See twbs/bootstrap#28265 and the flex utilities page for an example https://getbootstrap.com/docs/5.0/utilities/flex/#media-object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7 participants