Interoperability of hydraulic disc brakes and levers between model lines/manufacturers
You should have no issues with your proposed Shimano-Shimano setup. You may  confirm this using the Shimano technical documents si.shimano.com.