AdminLTE icon indicating copy to clipboard operation
AdminLTE copied to clipboard

Text inside panel is not visible

Open suvjunmd opened this issue 11 years ago • 4 comments

If you place a Bootstrap panel inside a modal, the text inside panel body is not visible, because the background-color ane text-color are the same (white).

panel

<div class="example-modal">
  <div class="modal modal-primary">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-dden="true">&times;</span>
          </button>
          <h4 class="modal-title">Modal Primary</h4>
        </div>
        <div class="modal-body">

          <!-- Panel -->
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3 class="panel-title">Panel title</h3>
            </div>
            <div class="panel-body">
              Panel content
            </div>
          </div><!-- /.panel panel-default -->

        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-outline pull-left" data-dismiss="modal">Close</button>
          <button type="button" class="btn btn-outline">Save changes</button>
        </div>
      </div>
    </div>
  </div>
</div>

suvjunmd avatar May 10 '15 11:05 suvjunmd

The primary modal must use white colored text to display properly. If you wish, you can add the following code to force dark colors in panels.

.panel-body {
  color: #444;
}

If this works I will add it to AdminLTE. Thank you!

almasaeed2010 avatar May 10 '15 17:05 almasaeed2010

Hey Abdullah, Your example works great ! Hope to see this in the next version of AdminLTE.

suvjunmd avatar May 10 '15 18:05 suvjunmd

:+1:

almasaeed2010 avatar May 12 '15 04:05 almasaeed2010

Fixed in master.

almasaeed2010 avatar May 27 '15 11:05 almasaeed2010